mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
15 lines
No EOL
257 B
JavaScript
15 lines
No EOL
257 B
JavaScript
var age, ages, child, yearsOld;
|
|
yearsOld = {
|
|
max: 10,
|
|
ida: 9,
|
|
tim: 11
|
|
};
|
|
ages = (function() {
|
|
var _results;
|
|
_results = [];
|
|
for (child in yearsOld) {
|
|
age = yearsOld[child];
|
|
_results.push(child + " is " + age);
|
|
}
|
|
return _results;
|
|
})(); |