Files
coffeescript/documentation/js/while.js
Jeremy Ashkenas c50cf23b7b CoffeeScript 0.9.4
2010-09-21 23:58:05 -04:00

18 lines
347 B
JavaScript

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