Expert JavaScript Developer Question:

Download Job Interview Questions and Answers PDF

Can the JavaScript code be broken in different lines?

Expert JavaScript Developer Interview Question
Expert JavaScript Developer Interview Question

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 Interview Questions And Answers PDF

Previous QuestionNext Question
Explain prompt box?Which Web sites do you feel use JavaScript most effectively (i.e., best-in-class examples)? The worst?