Last active
June 27, 2016 00:46
-
-
Save egrueter-dev/793f7b3042e20b2b3606058d7a20d70d to your computer and use it in GitHub Desktop.
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
| function Person(firstname, lastname) { | |
| this.firstname = firstname | |
| this.lastname = lastname | |
| } | |
| var john = new Person(‘john’, ‘doe’); | |
| var sally = new Person(‘sally’, ‘white’); | |
| //=> Person { Firstname: “John”, Lastname: “Doe” } | |
| //=> Person { Firstname: “Sally”, Lastname: “White” } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment