-
-
Save vmarchesin/60642a26484006dc400366e31524c619 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(() => { console.log(`Woof, my name is ${this.name}`) }, 1000) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment