Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
ES6 Class
class Person() { //instance method
speak() {
console.log(‘speak’);
}
}
class Person() { //static method
isHuman() {}
}
class Person() { //initialize instances
constructor(arguments) {}
}
class Person extends Human() { //syntantic sugar over Person.prototype = Object.create(Human.Prototype);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment