+ 1

New line and Carriage Return using "\" -JS

Why do my new line and carriage return for Javascript not work in Playground? https://code.sololearn.com/WZc4IXq9UrxE/?ref=app

6th May 2018, 2:58 PM
Stan Berger
Stan Berger - avatar
2 Réponses
+ 5
I am not sure why but I just use the HTML new line tag document.write("<br/>")
6th May 2018, 3:00 PM
cyk
cyk - avatar
+ 1
Thanks, cyk!
6th May 2018, 3:04 PM
Stan Berger
Stan Berger - avatar