Last active
May 2, 2018 08:24
-
-
Save khg0712/e33953876c9dca928e592ec3fc8c6d08 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 a = { | |
undefined: 'k', | |
b: 'z', | |
c: 'a' | |
j: 'j' | |
}; | |
var b; | |
var c = 'j'; | |
console.log(a[b]);//k 출력 | |
console.log(a[c]);//j 출력 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment