-
-
Save matthieua/2105f918a69be6c67f9d1df796be87ea to your computer and use it in GitHub Desktop.
this inside object method
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
var person = { | |
firstName: "John", | |
lastName : "Doe", | |
id : 5566, | |
fullName : function() { | |
return this.firstName + " " + this.lastName; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment