Last active
May 29, 2020 11:34
-
-
Save AregSargsyan/cb212935655e38ea2b7727f824ef1c35 to your computer and use it in GitHub Desktop.
Save Context with closure
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
let message = "HI"; | |
let sayHi = { | |
say: function() { | |
console.log( message); | |
} | |
}; | |
setTimeout(sayHi.say); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment