2010-07-29 00:51:35 -04:00
|
|
|
var eldest, grade;
|
|
|
|
grade = function(student) {
|
2010-09-27 15:21:45 -04:00
|
|
|
return student.excellentWork ? "A+" : (student.okayStuff ? (student.triedHard ? "B" : "B-") : "C");
|
2010-07-29 00:51:35 -04:00
|
|
|
};
|
|
|
|
eldest = 24 > 21 ? "Liz" : "Ike";
|