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

Updated example using @epidemian's suggestion

This commit is contained in:
Gabe Hollombe 2012-10-16 16:41:14 +11:00
parent 7065538224
commit 334dcbd162

View file

@ -1,8 +1,8 @@
score = 76
grade = switch
when 90 <= score then 'A'
when 80 <= score < 90 then 'B'
when 70 <= score < 80 then 'C'
when 60 <= score < 70 then 'D'
when score < 60 then 'F'
when score < 60 then 'F'
when score < 70 then 'D'
when score < 80 then 'C'
when score < 90 then 'B'
else 'A'
# grade == 'C'