Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- JS
- express-handlebars
- shit-christmas
- module wrapper function
- 정규표현식
- css grid
- Express
- ajax
- just-one-small-sip
- css variables
- Object.create
- flex-basis
- css
- select by attribute
- Prototype
- flex-shrink
- close together
- 무료 백엔드 배포
- node
- flexbox
- Engoo
- img 확대
- css 오버레이
- 디자인패턴
- Sass
- Node.js
- es6
- flex-grow
- regExp
- improve-iq-by-up-to-10%!
Archives
- Today
- Total
Object literal 본문
Object literal은 기본적으로 key value 쌍을 얘기한다.

.(dot) syntax를 이용해 개별 값에 접근할 수 있다.

es6에 추가된 destructuring(구조분해)를 통해 object에서 값을 가져와 할당할 수 있다. 이를 구조분해할당이라 한다.

다음과 같이 value(property)를 추가할 수도 있다.

'2021 프론트 엔드 로드맵 따라가기 > JS' 카테고리의 다른 글
반복문 (0) | 2021.05.27 |
---|---|
JSON (0) | 2021.05.27 |
Arrays (0) | 2021.05.27 |
String (0) | 2021.05.27 |
primitive types & referece types (0) | 2021.05.27 |
Comments