Home »

Can javascript code be broken in different lines?

Question ListCategory: JavascriptCan javascript code be broken in different lines?
milleranthony7 author asked 9 years ago
1 Answers
jessica537 author answered 8 years ago

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”);

Please login or Register to Submit Answer