Created
July 28, 2021 15:44
-
-
Save SmolinPavel/d9d5814cf3185045bbee21ca0cde18e9 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
var fullname = 'John Doe'; | |
var obj = { | |
fullname: 'Colin Ihrig', | |
prop: { | |
fullname: 'Aurelio De Rosa', | |
getFullname: function () { | |
return this.fullname; | |
}, | |
}, | |
}; | |
console.log(obj.prop.getFullname()); | |
const test = obj.prop.getFullname; | |
console.log(test()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment