Expert JavaScript Developer Question:
Download Questions PDF

Can the JavaScript code be broken in different lines?

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?