Categories

Dec 4, 2019 in JavaScript
Q: Can Javascript Code Be Broken In Different Lines?

1 Answer

Dec 4, 2019
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");
Click here to read more about JavaScript
Click here to read more about Insurance

Related questions

Madanswer
Feb 6 in JavaScript
Aug 24 in JavaScript
Apr 3 in Data Handling
...