Can javascript code be broken in different lines?

Author Topic: Can javascript code be broken in different lines?  (Read 523 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 159
  • Karma: 0
    • Hot Shaper
Can javascript code be broken in different lines?
« on: 02-09-2016, 04:12:35 »
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 Topics

  Subject / Started by Replies Last post
7 Replies
4463 Views
Last post 06-27-2016, 01:54:10
by thanhtran
10 Replies
4115 Views
Last post 08-18-2015, 00:02:43
by SanviMalhotra
3 Replies
4200 Views
Last post 08-18-2015, 00:25:30
by SanviMalhotra
1 Replies
2273 Views
Last post 06-03-2011, 00:22:07
by almedajohnson
1 Replies
1134 Views
Last post 03-30-2015, 03:51:18
by uditsh