Used for shorting and simplifying syntax.
template literals allow to create strongs rosy embed expressions. Which will be evaluate, then tirned into resulting string.
For example ‘ I counted ${3+4} sheep;
would result in 7, this the shorter way instead of writing the longer syntax.
To note it’s important to ise the back rock and dollar sign with curly bracket to be valid.
Alot taken in and and glad to see a shorter syntax introduced.
Comments