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

2014-01-30 00:21:44 -05:00
// Generated by CoffeeScript 1.7.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";