Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

string continuation to next line in java script

Status
Not open for further replies.

Dan01

Programmer
Jun 14, 2001
439
US
Hi, In VB, you can continue a string on a new line using,
"start of string " & _
& "end of string".

Does Javascript has something similar?
Thanks, Dan.
 
this will work:
Code:
var longstring = "start of string" +
   "end of string";
It's not really continuing the string, but concatenating two shorter strings. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top