crayon-syntax-highlighter/util/sample/coffee.txt
2019-08-30 19:30:19 +02:00

14 lines
235 B
Plaintext

# Example Script
class Animal
constructor: (@name) ->
move: (meters) ->
alert @name + " moved #{meters}m."
alert @name.foo
alert this.name
class Snake extends Animal
move: ->
alert "Slithering..."
super 5