Login | Register | FAQ
Anonymous

JavaScript String

+ Post a reply

4 posts Page 1 of 1


JavaScript String

by Chikwado » Fri Mar 27, 2015 9:31 pm

User avatar

Chikwado

  • Posts: 87
  • Joined: Mon Jul 29, 2013 11:36 pm
  • Location: Nigeria

Re: JavaScript String

by nanoverso » Sat Mar 28, 2015 1:57 am

Adding a backslash at the end of each line tells the JavaScript engine that the string will continue to the next line.
User avatar

nanoverso

  • Posts: 253
  • Joined: Sat May 10, 2014 12:08 am
  • Location: Brazil
--
Mario Blog (Portuguese): https://jogosdomariosuperbros.blogspot.com

Re: JavaScript String

by XainPro » Sat Mar 28, 2015 8:09 am

you can use + like this

var myText="my javascript"+
"text";
User avatar

XainPro

  • Posts: 3933
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: JavaScript String

by johnmacd » Fri Apr 15, 2016 12:56 pm

The solution to avoid this problem is to use the \ escape character.
User avatar

johnmacd

  • Posts: 23
  • Joined: Thu Jun 13, 2013 12:50 pm
--
Website Designer with 7 years experience as WordPress Developer. Affordable, Professional and Experienced. 100% Satisfaction. 24/7 Available.


+ Post a reply

Page 1 of 1