Created
July 19, 2019 17:55
-
-
Save RahulJyala7/6501b69bce9f5783aff4ab79d1b3d37d to your computer and use it in GitHub Desktop.
Java Script
This file contains hidden or 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
function Person(name){ | |
this.name = name | |
}; | |
var eve = new Person("Eve"); | |
eve.__proto__ == Person.prototype //true | |
eve.prototype //undefined | |
Instances have __proto__, classes have prototype. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment