Announcement

Announcement Module
Collapse
No announcement yet.

Can javascript code be broken in different lines?

Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can javascript code be broken in different lines?

    Can javascript code be broken in different lines?
    Thumbtack Clone | Taskrabbit Clone

  • #2
    Yes,
    Breaking is possible within a string statement by using a backslash "\" at the end .
    Ex:
    document.write("Good Morning. \
    I am Mr. John");
    But it is not possible within any other javascript statement.
    SEO Update | SEO Leap | SEO OFF Page Method

    Comment


    • #3
      Yes, we can broke the javascript code into different lines.................
      website designing ludhiana punjab|Packers and movers in Pune

      Comment

      Working...
      X