Skip to content

Instantly share code, notes, and snippets.

@erikvorhes
Created August 1, 2011 20:53
Show Gist options
  • Select an option

  • Save erikvorhes/1118973 to your computer and use it in GitHub Desktop.

Select an option

Save erikvorhes/1118973 to your computer and use it in GitHub Desktop.
Computer feature test of the highest order.
(function fanTest () {
'use strict';
var i = 1;
while (i) {
i = i + 1;
// Let's be nice and not throw errors in browsers that don't have consoles ...
if (!!console) {
i < 10000 && console.log('These fans work great!');
i >= 10000 && console.log('Listen to the music those fans make!');
}
}
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment