Files
coffeescript/documentation/js/expressions.js
Jeremy Ashkenas 7792a3a6e3 CoffeeScript 1.3.2
2012-05-14 14:45:20 -04:00

19 lines
319 B
JavaScript

// Generated by CoffeeScript 1.3.2
var eldest, grade;
grade = function(student) {
if (student.excellentWork) {
return "A+";
} else if (student.okayStuff) {
if (student.triedHard) {
return "B";
} else {
return "B-";
}
} else {
return "C";
}
};
eldest = 24 > 21 ? "Liz" : "Ike";