Created
September 5, 2017 13:54
-
-
Save aspencer8111/2a256d5901ead163b01a624521abd117 to your computer and use it in GitHub Desktop.
JS Scope
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
// What will the JS below print to the screen once executed? | |
function foo(x) { | |
return x + 10 | |
} | |
function bar(y) { | |
return foo(y) | |
} | |
console.log(bar(5)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment