DEV Community

Discussion on: Template literals in JavaScript

pentacular profile image
pentacular • Edited on

Just to be clear, in ecmascript.

'hello' // string literal.
"hello" // string literal.
`hello` // template literal (not a string literal)

Otherwise you may end up confusing people. :)

laurieontech profile image
Laurie Author

We’re not good about consistent wording. You’ll see template literal and string literal used even if it isn’t the official wording in the spec. But yes, I tried to include the various terms since it’s confusing.
I would have named the post template literals but I was matching my original tweet.