new line | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

new line

how to use new line in javascript. Does '\n' work in JS

10th Aug 2020, 5:09 AM
Shrishti Dogra
Shrishti Dogra - avatar
2 Answers
+ 5
The \n is used inside quotes console.log("abc\nhello") Output- Console abc hello
10th Aug 2020, 5:28 AM
Tanmay Gupta
Tanmay Gupta - avatar
+ 2
Thank you
13th Aug 2020, 1:13 PM
Shrishti Dogra
Shrishti Dogra - avatar