Created
May 29, 2020 11:38
-
-
Save AregSargsyan/3e627ff5d68747b8d149a15054536edd to your computer and use it in GitHub Desktop.
save context wit row function
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
class SayHi { | |
message = 'HI!' | |
say= () => console.log(this.message) | |
}; | |
var sayHi = new SayHi(); | |
setTimeout(sayHi.say); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment