Last active
August 6, 2019 18:59
-
-
Save ionelh/42d50a0d7d81f4c50779a5ed80ba2e6e to your computer and use it in GitHub Desktop.
Gist for medium article "How JavaScript Works"
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 myArrowFunction = () => { | |
console.log(this === window); | |
}; | |
class MyClass { | |
constructor() { | |
myArrowFunction(); | |
} | |
} | |
var myClassInstance = new MyClass(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment