Last active
January 9, 2016 15:13
-
-
Save jmarmolejos/5ddbc7af1a544f7dcde8 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
| class Car { | |
| constructor(make) { | |
| this.make = make | |
| } | |
| getMake() { | |
| return this.make; | |
| } | |
| } | |
| let car = new Car("Honda"); | |
| console.log(car.getMake()); // Logs Honda |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment