mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-14 09:17:55 -05:00
11 lines
239 B
JavaScript
11 lines
239 B
JavaScript
var eldest, grade;
|
|
grade = function(student) {
|
|
if (student.excellentWork) {
|
|
return "A+";
|
|
} else if (student.okayStuff) {
|
|
return student.triedHard ? "B" : "B-";
|
|
} else {
|
|
return "C";
|
|
}
|
|
};
|
|
eldest = 24 > 21 ? "Liz" : "Ike"; |