+ 1

Which one are we calling template literal?

Which one is considered as template literal? The whole concatenated string with variable within backtick (``) or only this ${}?

24th Jun 2021, 5:39 AM
NBinte
NBinte - avatar
2 Antworten
+ 3
A string with created using backticks `` is called a template literal. It necessarily need not have an expression ${} inside it.
24th Jun 2021, 1:41 PM
Avinesh
Avinesh - avatar
+ 1
Thanks :)
24th Jun 2021, 3:03 PM
NBinte
NBinte - avatar