UNPKG
coffeescript
Version:
latest (2.7.0)
next (2.7.0)
stable (2.7.0)
99.999.99999
99.999.9999
2.7.0
2.6.1
2.6.0
2.5.1
2.5.0
2.4.1
2.4.0
2.3.2
2.3.1
2.3.0
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.1.1
2.1.0
2.0.3
2.0.2
2.0.1
2.0.0
2.0.0-beta5
2.0.0-beta4
2.0.0-beta3
2.0.0-beta2
2.0.0-beta1
2.0.0-alpha1
1.12.7
1.12.6
1.12.5
1.12.4
1.12.3
1.12.2
1.12.1
1.12.0
1.11.1
1.11.0
1.10.0
1.9.3
1.9.2
1.9.1
1.9.0
1.8.0
1.7.0
1.6.3
1.6.2
1.6.1
1.6.0
1.5.0
1.4.0
1.3.3
1.3.2
1.3.1
1.3.0
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.1
1.0.0
0.9.6
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.7.2
0.7.1
0.7.0
Unfancy JavaScript
coffeescript
/
documentation
/
coffee
/
expressions.coffee
9 lines
(8 loc)
•
186 B
text/coffeescript
View Raw
1
2
3
4
5
6
7
8
9
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"