Last active
August 6, 2019 18:58
-
-
Save ionelh/50747202f80923d651ab3d37f1fd13ce 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
class MyClass { | |
constructor() { | |
const myArrowFunction = () => { | |
console.log(this === window); | |
}; | |
myArrowFunction(); | |
} | |
} | |
var myClassInstance = new MyClass(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment