I am having trouble creating a new line in JavaScript. When I use document.write() and enter \n at the start, it doesn't create a new line. How do I create new lines? (By the way, I am just a beginner)
Code:
var myString;
myString = 42;
document.write("myString is currently: " + myString);
myString = myString + 1;
document.write("\n myString is currently: " + myString);
`. If you want `\n` to create a new line, you need to wrap the text in ` ` – Sep 05 '17 at 10:15