use multy line in typescript 1

use multy line in typescript

var myString = 'A rather long string of English text, an error message ' +
    'actually that just keeps going and going -- an error ' +
    'message to make the Energizer bunny blush (right through ' +
    'those Schwarzenegger shades)! Where was I? Oh yes, ' +
    'you\'ve got an error and all the extraneous whitespace is ' +
    'just gravy.  Have a nice day.';

Here is what the above code is Doing:
1. We’re creating a variable called myString and assigning it a string value.
2. We’re using the + operator to concatenate the string values together.
3. We’re using the \ character to escape the single quote character.

Similar Posts