Javascript

String Concatenation


Example

// if you need to create a long string, you can:
const myStory = "hey guys, how is it going? I hope " +
    "you are enjoying today's WDI!" +
    " Cheers, all.";

console.log(myStory);

Interpolation

const name = 'jim'

const template = `Hey ${name}, whats up?`

results matching ""

    No results matching ""