Files
coffeescript/documentation/js/expressions.js
Jeremy Ashkenas 590c069158 CoffeeScript 0.5.6
2010-03-23 00:18:50 -04:00

18 lines
340 B
JavaScript

(function(){
var eldest, grade;
grade = function grade(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";
})();