Last active
April 1, 2017 22:23
-
-
Save crongro/eaff555007054d45aaa9145e584dcafb to your computer and use it in GitHub Desktop.
es6_object_enhancement
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
const name = "nayoun"; | |
const age = 9; | |
const others = { | |
address : "kwang myeung city", | |
tel : null, | |
height: 130 | |
} | |
const data = { | |
name, | |
age, | |
others, | |
getName() { | |
return this.name; | |
} | |
} | |
console.log(data); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment