Files
coffeescript/documentation/js/expressions.js
Jeremy Ashkenas 485346f0e5 CoffeeScript 0.6.2
2010-05-15 01:18:05 -04:00

18 lines
334 B
JavaScript

(function(){
var eldest, grade;
grade = function(student) {
if (student.excellent_work) {
return "A+";
} else if (student.okay_stuff) {
if (student.tried_hard) {
return "B";
} else {
return "B-";
}
} else {
return "C";
}
};
eldest = 24 > 21 ? "Liz" : "Ike";
})();