mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
5 lines
No EOL
185 B
JavaScript
5 lines
No EOL
185 B
JavaScript
var eldest, grade;
|
|
grade = function(student) {
|
|
return student.excellentWork ? "A+" : (student.okayStuff ? (student.triedHard ? "B" : "B-") : "C");
|
|
};
|
|
eldest = 24 > 21 ? "Liz" : "Ike"; |