Created
July 2, 2017 06:55
-
-
Save mattn9x/ff6bd17765450699d0c22eb542623be8 to your computer and use it in GitHub Desktop.
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(firstName, lastName) { | |
this.firstName = firstName; | |
this.lastName = lastName; | |
this.showName = function () { | |
console.log(this.firstName + '- ' + this.lastName); | |
} | |
} | |
var psn1 = new Person('manh', 'nguyen'); | |
psn1.showName(); // I'm manh- nguyen |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment