mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
13 lines
No EOL
289 B
JavaScript
13 lines
No EOL
289 B
JavaScript
(function(){
|
|
var eldest, grade;
|
|
grade = function grade(student) {
|
|
if (student.excellent_work) {
|
|
return "A+";
|
|
} else if (student.okay_stuff) {
|
|
return student.tried_hard ? "B" : "B-";
|
|
} else {
|
|
return "C";
|
|
}
|
|
};
|
|
eldest = 24 > 21 ? "Liz" : "Ike";
|
|
})(); |