Created
May 21, 2019 02:35
-
-
Save kohendrix/fd206a256fef48a8ed7b31b00d22f9f5 to your computer and use it in GitHub Desktop.
simple model
This file contains 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 User { | |
constructor(name, email) { | |
this.name = name; | |
this.email = email; | |
} | |
greet() { | |
return `Hello, my name is ${this.name}`; | |
} | |
} | |
module.exports = User; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment