Skip to content

Instantly share code, notes, and snippets.

@oliverwebr
Last active June 11, 2020 23:05
Show Gist options
  • Save oliverwebr/d6ec88d4addcb69234d31d5c00cbce1c to your computer and use it in GitHub Desktop.
Save oliverwebr/d6ec88d4addcb69234d31d5c00cbce1c to your computer and use it in GitHub Desktop.
JavaScript Closures with Examples Explained - 2
(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