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:
parent
7065538224
commit
334dcbd162
1 changed files with 5 additions and 5 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue