String.raw()
2022年5月1日小于 1 分钟
String.raw()
Question
What does the code snippet to the right output by console.log
?
Snippet
console.log(String.raw`BFE\n.${'dev'}`)
console.log(String.raw({raw: 'BFE'}, 'd', 'e','v'));
// when you enter your input in text box below
// keep in mind it is treated as raw string and will be escaped