Forum : Can javascript code be broken in different lines?
Brief description  about Online courses   join in Online courses
View Balu  Prasad 's Profile

Can javascript code be broken in different lines?

Can javascript code be broken in different lines?
Asked by Balu Prasad | Mar 22, 2010 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
Hi Balu,
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");
Mar 22, 2010