Skip to content

Instantly share code, notes, and snippets.

@harrisonmalone
Created July 1, 2020 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harrisonmalone/c209e166063fba4716c1a28e5db75525 to your computer and use it in GitHub Desktop.
Save harrisonmalone/c209e166063fba4716c1a28e5db75525 to your computer and use it in GitHub Desktop.
class Dog {
present() {
}
static myMethod() {
}
}
console.dir(Dog)
// you can see that myMethod is on the class, it's a static method
console.dir(Dog.prototype)
// you can see that present is on the Dog prototype, it's a prototype method
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment