/documentation/coffee/expressions.coffee
http://github.com/jashkenas/coffee-script · CoffeeScript · 9 lines · 8 code · 1 blank · 0 comment · 7 complexity · db21576f17da75dfd8b5bd27d8a3c397 MD5 · raw file
- 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"