Expert JavaScript Developer Question: Download Expert JavaScript Developer PDF

Can the JavaScript code be broken in different lines?

Tweet Share WhatsApp

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

Download Expert JavaScript Developer PDF Read All 58 Expert JavaScript Developer Questions
Previous QuestionNext Question
Explain prompt box?Which Web sites do you feel use JavaScript most effectively (i.e., best-in-class examples)? The worst?