0

JS Question

How do i make a new line of code in JavaScript (i.e how do i make a line of code go to the next line??) ?

14th Jul 2020, 4:24 PM
Obinna
Obinna - avatar
6 odpowiedzi
+ 3
Try this: document.write("Hello<br>Obinna")
14th Jul 2020, 7:47 PM
Namit Jain
Namit Jain - avatar
+ 1
If you mean, splitting output to multiple lines Then so You can use the new line character \n console.log("this is my text\nthis is my text again!") output: this is my text this is my text again!
14th Jul 2020, 4:46 PM
Mind To Machine 💻🕆
Mind To Machine 💻🕆 - avatar
+ 1
Three different options 😁
14th Jul 2020, 7:55 PM
Sandra Meyer
Sandra Meyer - avatar
0
Your question is not clear for me - I mean do you really ask for "Enter" key?
14th Jul 2020, 4:31 PM
Sandra Meyer
Sandra Meyer - avatar
0
Thanks guys 💪🌝
15th Jul 2020, 10:45 AM
Obinna
Obinna - avatar
0
You have to take on a enter key for a next line
15th Jul 2020, 10:50 AM
JaScript
JaScript - avatar