Last active
June 11, 2020 23:05
-
-
Save oliverwebr/d6ec88d4addcb69234d31d5c00cbce1c to your computer and use it in GitHub Desktop.
JavaScript Closures with Examples Explained - 2
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
(function () { | |
let myLuckyNumber = 5; | |
function main() { | |
console.log(myLuckyNumber); | |
} | |
main(); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment