JS - String quote types

0 votes
added Jul 5, 2018 in jQuery by LC Marshal Captain (25,790 points)
//double and single quote are mostly in use, but with the backticks you can include variables seamlessly

let str1 = "string 1",
      str2 = 'string 2',
      strBackticks = `With backtick, we can embed ${str1} & ${str2} in a fashion manner `;
lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.