Last active
April 23, 2017 07:33
-
-
Save SeonghuiChoe/2844c300cc1bc0a92cf1fa0726c063a4 to your computer and use it in GitHub Desktop.
Javascript 문제
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 yangpa5 = "Marry me"; | |
function print_value() { | |
console.log(yangpa5); | |
var yangpa5 = "나 때문에"; | |
console.log(yangpa5); | |
function nested() { | |
console.log(yangpa5); | |
yangpa5 = "사랑...그게뭔데"; | |
console.log(yangpa5); | |
var yangpa5 = "한 사람"; | |
console.log(yangpa5); | |
} | |
nested(); | |
} | |
print_value(); |
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 name = "javarouka"; | |
var introduce = function () { | |
var intro = "My name is "; | |
if (!name) { | |
var name = "unknown" | |
} | |
return intro += name; | |
} | |
console.log(introduce()); |
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 myName = undefined; | |
function myName() { | |
return 'bar'; | |
} | |
console.log(myName()); | |
myName = 'foo'; | |
console.log(myName); |
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
console.log(myName()); | |
var myName = 'foo'; | |
function myName() { | |
return 'bar'; | |
} | |
delete myName; | |
console.log(myName); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment