Expert JavaScript Developer Question:
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");
that is ,
document.write("Hello world");
is possible but not document.write
("hello world");
Previous Question | Next Question |
Explain prompt box? | Which Web sites do you feel use JavaScript most effectively (i.e., best-in-class examples)? The worst? |