-
-
Save ilearnjavascript/6c16bb7a1186882bfb0e2a67e9c96049 to your computer and use it in GitHub Desktop.
es6 - classes - 8.js
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
// The es5_Soldier.prototype creates a new object which has the es5_person.prototype as its __proto__ | |
es5_Soldier.prototype = Object.create(es5_Person.prototype); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment