var z = `line
next line`;
alert(z);
/* OUTPUT
line
next line
*/
document.getElementById("demo").innerHTML = z;
/* OUTPUT
line next line
*/
I am using Firefox. Am I missing something here? Or is this supposed to work this way? I have referred to the Multiline String section of the mozilla developer org website (Sorry, I was unable to post more than 2 links here !!)
+ 'next line';` – Sergio Alen Oct 05 '17 at 23:38
` tag is not present in your link... – La masse Oct 05 '17 at 23:42
` tags inserted because they didn't know how to put a code block in their question. I forgot to remove it, sorry. – 4castle Oct 05 '17 at 23:45
usage. I was curious to know how to use the multiline feature of ES6 – Nehal Bhanushali Oct 06 '17 at 00:19