Can JavaScript code be broken in different lines?

Can JavaScript code be broken in different lines?

Can JavaScript code be broken in different lines?

View Answers

November 10, 2010 at 5:14 PM

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









Related Tutorials/Questions & Answers:
Can JavaScript code be broken in different lines?
Can i write JavaScript code in AjaxResponse Code ?
Advertisements
Javascript code
Javascript code
Javascript code
Javascript code
Javascript code
Javascript code
How to comment javascript code?
javascript calendar popup code
JavaScript code - Java Beginners
In JSP page, inside a javascript function, can I place a java code using scriptlet tag?
Javascript Code for all fields
Javascript validation code
Javascript validation code
javascript code - WebSevices
ModuleNotFoundError: No module named 'broken'
javascript code - WebSevices
javascript Code - JSP-Servlet
Broken link list
Javascript code - Java Beginners
javascript code for search in html file
Replace broken Image using JQuery
javascript code problem - JSP-Servlet
Html/JavaScript code - JSP-Servlet
Where can I learn JavaScript
ModuleNotFoundError: No module named 'broken_since'
different output trying to execute same java code
different output trying to execute same java code
different output trying to execute same java code
combox validation javascript code - JSP-Servlet
ModuleNotFoundError: No module named 'fill_broken_words'
ModuleNotFoundError: No module named 'fill_broken_words'
My screen EPAD is broken ...please help
provide code in servlets,javascript,jsp - JavaMail
java code to validate column content of 2 different tables in 2 different databases.
send me javascript code - Java Beginners
Separating custom code in different file
How to run ActionListenters in two different thread for the following code...
How to run ActionListenters in two different thread for the following code...
How to run ActionListenters in two different thread for the following code...
How to run ActionListenters in two different thread for the following code...
javascript cal code for selecting date in text field - JSP-Servlet
how to access element added via javascript dynamically using jsp code
How to encrypt JavaScript?
How to play FLV video files on Ipad using HTML code or javascript code?
Can find a solution or code for this - XML
Transferring values between javascript and java code in jsp - JSP-Servlet
javascript
How can I get query string values in JavaScript?

Ads