line continuation

Results 1 to 2 of 2

Thread: line continuation

  1. #1
    Join Date
    Dec 1969

    Default line continuation

    how do you do line continuation in javascript<BR><BR>I have a text string being passed to a var, and I want to carry it across multiple lines... e.g. in vbscript is _ <BR>many thanks

  2. #2
    Joel N Guest

    Default RE: line continuation

    This line:<BR><BR>"This is a line of text";<BR><BR>is equivalent to:<BR><BR>"This is a "<BR>+ "line of text";<BR><BR>in a javascript function.<BR><BR>Adding the "optional" semi-colon at the end of a statement helps the script engine to know when it has reached the end of an executable statement.<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts