+ 2
How do I write something on a new line in JAVASCRIPT?
If i want output: Yo Yo
4 Antworten
+ 4
What method are you using for output?
+ 2
console.log("Yo");
console.log("Yo");
console.log('Yo\nYo');
document.write('Yo<br>Yo');
+ 1
You can use \n to write on a new line
"Yo\nYo"
0
\n