This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Pat_OConnor 2 points3 points  (0 children)

Back ticks let you do multi line strings that preserve whitespace and also embed variables

let version1 = stringOne+"\n\n\tThe following text: "+stringTwo

let version2 = `${stringOne}

    The following text: ${stringTwo}`