Template String/Literals Flashcards

1
Q

What is a template string/literal?

A

A nicer way of joining a JavaScript variable with a string. You use string interpolation, you write out a normal string with backticks you inject ${}.

Note: You can use any kind of JavaScript expression.

This would be sugar syntax to produce a more legible string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly