Created
October 29, 2016 21:31
-
-
Save Rosuav/d7a3a6d70cdbf3909852f54c4fd12011 to your computer and use it in GitHub Desktop.
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
"use strict"; | |
function g(n) { | |
if (n) { | |
const me_cry = "stand here"; | |
var break_of_dawn = "perfect"; | |
} else { | |
//Some variables rise to the top of the function. | |
//Do their values? | |
console.log(break_of_dawn); | |
//And will you see this one? | |
console.log(me_cry); | |
} | |
} | |
let it = g(0); | |
console.log(it); //IIDPIO. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment