Created
January 25, 2017 08:43
-
-
Save martsie/2c799761f82e06f075785ed7e4a2c795 to your computer and use it in GitHub Desktop.
Simple example of a class in CoffeeScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class @Person | |
firstName: 'John' | |
lastName: 'Doe' | |
constructor: (@firstName, @lastName) -> | |
fullName: -> | |
return "#{@firstName} #{@lastName}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment