Created
August 1, 2011 20:53
-
-
Save erikvorhes/1118973 to your computer and use it in GitHub Desktop.
Computer feature test of the highest order.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (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