Created
July 19, 2017 06:51
-
-
Save debugmodedotnet/b9f084bc5dd79c8f5751b5c48b444607 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
function foo() { | |
var x = 9; | |
if (x > 5) { | |
let x = 7; | |
console.log("Value of x in if statement = " + x); | |
} | |
console.log("Value of x outside if statement = " + x); | |
} | |
foo(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment