Last active
May 2, 2018 14:55
-
-
Save khg0712/d98c2716c27d3e476d2cdc4c2dd1da64 to your computer and use it in GitHub Desktop.
객체 delete 연산자 사용법 예시
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 = { | |
name: 'Hello', | |
age: 2 | |
}; | |
delete a.name; | |
console.log(a.name);//undefined 출력 | |
delete a['age']; | |
console.log(a['age']);//undefined 출력 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment