My code is:
let testStr = "Asdfads";
let htmlStr = `<script>${ testStr }</script>`; // but it works with: <div>${ testStr }</div>
console.log(htmlStr);
It returns me an error:
Uncaught SyntaxError: Unterminated template literal
What do I do wrong? I run it on the latest Chrome.
<\/script>document.write..?