Template literals simplify string creation and manipulation in JavaScript by allowing easy embedding of variables and expressions, and by supporting multiline strings without additional characters.
They improve code readability and reduce the complexity of string operations compared to traditional string concatenation.
SWITCH LAYOUT
template literals
old syntax
URL example
Template literals are very used to concat every type of strings.
A very common use is the concatenation of strings to form a url:
const example
TIP (in the TIP :): if you have to construct urls, use URL() instead.