Created
March 12, 2018 21:29
-
-
Save cawel/1e801d1c1a9dd6402fdc70cc4b7c5645 to your computer and use it in GitHub Desktop.
JavaScript Interview Question
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 age = 20 | |
(function () { | |
console.log("Original age is " + age) | |
var age = 30 | |
console.log("The new age is " + age) | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment