1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
jashkenas--coffeescript/documentation/js/expressions.js

19 lines
319 B
JavaScript
Raw Normal View History

2015-02-18 15:43:33 -05:00
// Generated by CoffeeScript 1.9.1
2010-07-29 00:51:35 -04:00
var eldest, grade;
2010-07-29 00:51:35 -04:00
grade = function(student) {
2010-11-21 12:38:27 -05:00
if (student.excellentWork) {
return "A+";
} else if (student.okayStuff) {
if (student.triedHard) {
return "B";
} else {
return "B-";
}
} else {
return "C";
}
2010-07-29 00:51:35 -04:00
};
eldest = 24 > 21 ? "Liz" : "Ike";