Created
February 24, 2020 05:46
-
-
Save leegeunhyeok/26aa9365905bcec891b9ada0b963ce6e to your computer and use it in GitHub Desktop.
What is self in Javascript?
This file contains hidden or 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
// var myVariable = 10; | |
window.myVariable = 10; | |
function myFunc () { | |
console.log(myVariable); | |
} | |
// 10 | |
myFunc(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment