+ 1

JavaScript in HTML new line

Hi, i'm trying to make new line in javascript in html website but /n is not working, pls help me :(

26th Nov 2018, 11:36 PM
Kreo
Kreo - avatar
13 Respostas
27th Nov 2018, 12:25 AM
LONGTIE👔
LONGTIE👔 - avatar
+ 6
Kreo now i am also confused, sorry i cant help you.
27th Nov 2018, 12:10 AM
LONGTIE👔
LONGTIE👔 - avatar
+ 6
Kreo most of the credit goes to _yaroslavv , i just put it in a code.
27th Nov 2018, 12:59 AM
LONGTIE👔
LONGTIE👔 - avatar
+ 4
Kreo can you share the code?
27th Nov 2018, 12:06 AM
LONGTIE👔
LONGTIE👔 - avatar
+ 3
use \n
26th Nov 2018, 11:47 PM
LONGTIE👔
LONGTIE👔 - avatar
+ 2
no problem, thanks for trying :)
27th Nov 2018, 12:11 AM
Kreo
Kreo - avatar
+ 1
https://code.sololearn.com/W2u7y4c15Ay5/?ref=app maybe i wrote something wrong in code?
27th Nov 2018, 12:06 AM
Kreo
Kreo - avatar
+ 1
You can always use <br /> and forgot about all problems :)
27th Nov 2018, 12:21 AM
_yaroslavv [online_everyday]
_yaroslavv [online_everyday] - avatar
+ 1
i will try it in vs code tommorow
27th Nov 2018, 12:28 AM
Kreo
Kreo - avatar
+ 1
WoW, thanks mate! You're great :D
27th Nov 2018, 12:52 AM
Kreo
Kreo - avatar
0
still not working :/
27th Nov 2018, 12:06 AM
Kreo
Kreo - avatar
0
it's not working too :(
27th Nov 2018, 12:24 AM
Kreo
Kreo - avatar
0
I think its problem only in sololearn. try to use notepad or atom and write your web pages without any errors
27th Nov 2018, 12:25 AM
_yaroslavv [online_everyday]
_yaroslavv [online_everyday] - avatar