Login
Remember
Register
Ask a Question
Can Javascript Code Be Broken In Different Lines?
+1
vote
asked
Dec 4, 2019
in
JavaScript
by
SakshiSharma
Can Javascript Code Be Broken In Different Lines?
#javascript-code
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Dec 4, 2019
by
rajeshsharma
Breaking is possible within a string statement by using a backslash \ at the end but not within any other javascript statement.
that is ,
document.write("Hello \ world");
is possible but not document.write \
("hello world");
...