Created
October 5, 2011 18:56
-
-
Save balinterdi/1265313 to your computer and use it in GitHub Desktop.
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
| wrong = -> | |
| countdown = 10 | |
| h = setInterval -> | |
| countdown-- | |
| , 100 | |
| do (->) until countdown is 0 | |
| clearInterval h | |
| console.log 'Surprise!' | |
| right = -> | |
| countdown = 10 | |
| h = setInterval -> | |
| countdown-- | |
| if countdown is 0 | |
| console.log 'Surprise' | |
| clearInterval h | |
| , 100 | |
| right() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment