반응형
This file contains hidden or 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
// string-raw.js | |
let a = `hello\nNHNworld`; | |
let res = String.raw`hello\nNHNworld`; | |
console.log(a); | |
// hello | |
// NHNworld | |
console.log(res); | |
// hello\nNHNworld |
728x90
반응형
'Javascript' 카테고리의 다른 글
Callback Hell (0) | 2018.11.22 |
---|---|
Error first callback (0) | 2018.11.22 |
template tag (0) | 2018.11.22 |
치환자 ${} (0) | 2018.11.22 |
JSFiddle 에서 console 사용하기 (0) | 2018.11.22 |