-
-
Save velotiotech/e73022973efb37a7575e9aeb31b5cc44 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
const obj = { | |
value: 29, | |
method: function() { | |
const nested = () => { | |
console.log("LOG 1: ",this.value); | |
}; | |
nested(); | |
} | |
}; | |
const obj2 = { | |
value: 25, | |
method: function() { | |
setTimeout(function() { | |
console.log("LOG 2: ",this.value); | |
}, 1000); | |
} | |
}; | |
obj.method(); | |
obj2.method(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment