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 |
Tags
- 카카오맵
- Template literals
- BOJ
- Hooks
- nextjs
- 카카오맵 api
- spread operation
- Next
- Redux
- Python
- Python #Baekjoon
- css #html
- 프로그래머스
- firebase
- React #Hooks
- es6
- CSS
- Python #CodeUp
- HTML #CSS
- react
- JavaScript
- Default parameter
- HTML
- Nullish Coalescing Operator
- React Kakao map
- optional chanining
- es11
Archives
- Today
- Total
거북이개발자
[ES6] Template Literals 본문
1. Template Literals
(1)기존의 문자 작성시
const name='Ryu';
const age='27';
console.log('my name is '+name+' my age is '+age);
이런식으로 +기호를 이용하여 작성했다.
(2)Template Literals이용시
const name='Ryu';
const age='27';
console.log(`my name is ${name} my age is ${age}`);
이렇게 간소화가 가능하다.
'Web > ES6' 카테고리의 다른 글
[ES11] Nullish Coalescing Operator (0) | 2021.02.07 |
---|---|
[ES11] Optional chaining (0) | 2021.02.07 |
[ES6] Default parameters (0) | 2021.02.07 |
[ES6] Spread Syntax (0) | 2021.02.07 |
[ES6] Destructuring Assignment (0) | 2021.02.07 |
Comments