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

22 lines
412 B
JavaScript
Raw Normal View History

2009-12-21 11:41:45 -05:00
(function(){
2010-01-13 23:24:45 -05:00
var __a, lyrics, num;
// Econ 101
2010-01-13 23:24:45 -05:00
if (this.studying_economics) {
while (supply > demand) {
buy();
}
while (supply < demand) {
sell();
}
2009-12-21 11:41:45 -05:00
}
// Nursery Rhyme
2010-01-13 23:24:45 -05:00
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;
})();
2009-12-21 11:41:45 -05:00
})();