1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
jashkenas--coffeescript/documentation/js/while.js

18 lines
355 B
JavaScript
Raw Normal View History

var lyrics, num;
2010-07-29 00:51:35 -04:00
if (this.studyingEconomics) {
while (supply > demand) {
buy();
2009-12-21 11:41:45 -05:00
}
while (!(supply > demand)) {
2010-07-29 00:51:35 -04:00
sell();
}
}
num = 6;
2010-12-23 15:41:42 -05:00
lyrics = (function() {
var _results;
2010-11-21 12:38:27 -05:00
_results = [];
2010-07-29 00:51:35 -04:00
while (num -= 1) {
2010-11-21 12:38:27 -05:00
_results.push(num + " little monkeys, jumping on the bed. One fell out and bumped his head.");
2010-07-29 00:51:35 -04:00
}
2010-11-21 12:38:27 -05:00
return _results;
2010-12-23 15:41:42 -05:00
})();