mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-14 17:27:59 -05:00
9 lines
184 B
CoffeeScript
9 lines
184 B
CoffeeScript
grade: (student) ->
|
|
if student.excellentWork
|
|
"A+"
|
|
else if student.okayStuff
|
|
if student.triedHard then "B" else "B-"
|
|
else
|
|
"C"
|
|
|
|
eldest: if 24 > 21 then "Liz" else "Ike" |