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