Last active
February 28, 2018 04:18
-
-
Save jaamaalxyz/64c2f94134f3d2ae1fb74dc1cf4b99c8 to your computer and use it in GitHub Desktop.
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
let id = function() { | |
const num = 10; | |
console.log(num); // output: 10 | |
}; | |
console.log(id()); // 10 | |
console.log(num); // ReferenceError: num is not defined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment