Welcome to Questionaries, where you can ask questions and receive answers from other members of the community.

Let us know at info@questionaries.org

Can javascript code be broken in different lines?

3 like 0 dislike
Can javascript code be broken in different lines? please tell me about this topic......
asked 1 year ago by rad_joshep (19,390 points)

1 Answer

2 like 0 dislike
 
Best answer
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");
answered 1 year ago by daneim (127,080 points)

Related questions

5 like 0 dislike
1 answer
asked 1 year ago by daneim (127,080 points)
3 like 0 dislike
1 answer
4 like 0 dislike
1 answer