-
-
Save vmarchesin/8c3d2763f3b19598e24c4d6182f5431f to your computer and use it in GitHub Desktop.
Javascript Arrow Functions and 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
sitAndBark() { | |
setTimeout((function() { console.log(`Woof, my name is ${this.name}`) }).bind(this), 1000) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment