Created
January 30, 2019 14:52
-
-
Save jitendra19/60504e59f0e8b048776777d1ecf94d64 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
// What would be the output of following code | |
var employeeId = 'abc123'; | |
function foo() { | |
employeeId = '123bcd'; | |
return; | |
function employeeId() {} | |
} | |
foo(); | |
console.log(employeeId); | |
// Answer: 3) 'abc123' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment