Created
July 1, 2020 23:59
-
-
Save harrisonmalone/c209e166063fba4716c1a28e5db75525 to your computer and use it in GitHub Desktop.
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 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