mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-14 17:27:59 -05:00
12 lines
270 B
JavaScript
12 lines
270 B
JavaScript
(function(){
|
|
var grade = function(student) {
|
|
if (student.excellent_work) {
|
|
return "A+";
|
|
} else if (student.okay_stuff) {
|
|
return student.tried_hard ? "B" : "B-";
|
|
} else {
|
|
return "C";
|
|
}
|
|
};
|
|
var eldest = 24 > 21 ? "Liz" : "Ike";
|
|
})(); |