Skip to content

Instantly share code, notes, and snippets.

@pumpkincouture
Created August 12, 2015 01:58
Show Gist options
  • Save pumpkincouture/978986229149dbd0204e to your computer and use it in GitHub Desktop.
Save pumpkincouture/978986229149dbd0204e to your computer and use it in GitHub Desktop.
# CoffeeScript # JavaScript
countdown = (num for num in [10..1]) var countdown, num;
countdown = (function() {
var i, results;
results = [];
for (num = i = 10; i >= 1; num = --i) {
results.push(num);
}
return results;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment