Created
March 28, 2018 11:54
-
-
Save aryak007/4bf1c1d2b7e1de67dafe7426747f8a67 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
var foo = function bar(){ | |
var foo = "baz"; | |
console.log(foo); | |
function baz(foo){ | |
foo = "bam"; // Gets assigned to the local foo again | |
bam = "yay"; | |
} | |
baz(); // JS variatic functions. | |
} | |
foo(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment