Created
May 8, 2017 15:25
-
-
Save jgermade/4ec6e55d1bd2124e922dd87d0486d5a4 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
function Father(first_name) { | |
this.first_name = name; | |
} | |
var John = new Father('John'); | |
function Son() { | |
Father.apply(this, arguments); | |
} | |
Son.prototype = John; | |
var Johnny = new Son('Johnny'); | |
Johnny.last_name | |
John.last_name = 'Smith'; | |
Johnny.last_name | |
function sum (a, b, c) { | |
return a+b+c; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment