19 lines
319 B
JavaScript
19 lines
319 B
JavaScript
// Generated by CoffeeScript 1.4.0
|
|
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";
|