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??) ?
6 Réponses
+ 3
Try this:
document.write("Hello<br>Obinna")
+ 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!
+ 1
Three different options 😁
0
Your question is not clear for me - I mean do you really ask for "Enter" key?
0
Thanks guys 💪🌝
0
You have to take on a enter key for a next line