Skip to content

Instantly share code, notes, and snippets.

@cyrilletuzi

cyrilletuzi/class.js

Last active Jan 29, 2017
Embed
What would you like to do?
class User {
constructor(firstName) {
this.firstName = firstName;
}
sayHello() {}
}
let myUser = new User(`Henri`);
myUser.firstName;
myUser.sayHello();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment