mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
17 lines
216 B
CoffeeScript
17 lines
216 B
CoffeeScript
num: 10
|
|
|
|
result: switch num
|
|
when 5 then false
|
|
when 'a'
|
|
true
|
|
true
|
|
false
|
|
when 10 then true
|
|
|
|
|
|
# Mid-switch comment with whitespace
|
|
# and multi line
|
|
when 11 then false
|
|
else false
|
|
|
|
print(result)
|