-
-
Save velotiotech/6d44f4e5462d3a112a51e15cc79289c8 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 3:",this.value); | |
}; | |
nested(); | |
} | |
}; | |
const obj2 = { | |
value: 25, | |
method: function() { | |
setTimeout(function() { | |
console.log("LOG 4:",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