JS - String quote types

0 votes
88 views
added Jul 5, 2018 in jQuery by LC Marshal Captain (25,770 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 `;
console.log(strBackticks)
lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...