+ 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 Respuestas
+ 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