ES6.2 String literal

Austin Jiuk Kim·2022년 4월 7일
0

JavaScript

목록 보기
3/6

String literal

String literal is a effective way to make string using defined variables.

const var1 = 'hello'
const var2 = 'world'

const StrLit = `${var1}, ${var2}!!`
console.log(StrLit)
hello world!!
profile
그냥 돼지

0개의 댓글