Files
coffeescript/documentation/js/while.js
Jeremy Ashkenas e2c46d14f0 CoffeeScript 0.9.2
2010-08-23 22:08:33 -04:00

18 lines
327 B
JavaScript

var _a, lyrics, num;
if (this.studyingEconomics) {
while (supply > demand) {
buy();
}
while (!(supply > demand)) {
sell();
}
}
num = 6;
lyrics = (function() {
_a = [];
while (num -= 1) {
_a.push(num + " little monkeys, jumping on the bed.\
One fell out and bumped his head.");
}
return _a;
})();