1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00
jashkenas--coffeescript/documentation/coffee/expressions.coffee

9 lines
187 B
CoffeeScript
Raw Normal View History

grade: (student) =>
2009-12-21 11:41:45 -05:00
if student.excellent_work
"A+"
else if student.okay_stuff
2009-12-30 00:22:27 -05:00
if student.tried_hard then "B" else "B-"
2009-12-21 11:41:45 -05:00
else
2009-12-30 00:22:27 -05:00
"C"
2009-12-21 11:41:45 -05:00
2009-12-30 00:22:27 -05:00
eldest: if 24 > 21 then "Liz" else "Ike"