Alex Rivera | Logout

How do I break a string across more than one line of code in JavaScript?

Asked 2009-02-03T18:16:19.320
268

Is there a character in JavaScript to break up a line of code so that it is read as continuous despite being on a new line?

Something like....

1. alert ( "Please Select file   
2. \ to delete" );
Edit
Report

1 Answer

9

Break up the string into two pieces 

alert ("Please select file " +
       "to delete");
answered 2009-02-03T18:19:05.230

Your Answer