Template literal vs String concatenation vs Variable less template literal concatenation

Edit on GitHub

Template literals vs string concatenation

Setup

const x = 57;

Tests

  • Template literal

    `x is ${x}`
  • String concatenation

    'x is ' + x
  • Variable less template literal concatenation

    `x is ` + x