2010-11-21 17:38:27 +00:00
|
|
|
var age, ages, child, yearsOld, _results;
|
2010-07-29 04:51:35 +00:00
|
|
|
yearsOld = {
|
|
|
|
max: 10,
|
|
|
|
ida: 9,
|
|
|
|
tim: 11
|
|
|
|
};
|
2010-11-22 02:12:59 +00:00
|
|
|
ages = function() {
|
2010-11-21 17:38:27 +00:00
|
|
|
_results = [];
|
2010-10-05 03:21:16 +00:00
|
|
|
for (child in yearsOld) {
|
|
|
|
age = yearsOld[child];
|
2010-11-21 17:38:27 +00:00
|
|
|
_results.push(child + " is " + age);
|
2010-07-29 04:51:35 +00:00
|
|
|
}
|
2010-11-21 17:38:27 +00:00
|
|
|
return _results;
|
2010-11-22 02:12:59 +00:00
|
|
|
}();
|