Skip to content

Instantly share code, notes, and snippets.

@weotch
Created April 18, 2016 01:57
Show Gist options
  • Save weotch/7c81ac2c0797f9ae69778e41b55551a3 to your computer and use it in GitHub Desktop.
Save weotch/7c81ac2c0797f9ae69778e41b55551a3 to your computer and use it in GitHub Desktop.
Coffeescript demo
num = 6
lyrics = while num -= 1
"#{num} little monkeys, jumping on the bed.
One fell out and bumped his head."
var num = 6;
lyrics = (function() {
var results;
results = [];
while (num -= 1) {
results.push(num + " little monkeys, jumping on the bed. One fell out and bumped his head.");
}
return results;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment