Another good addition to template literals is writing more readable code, for example:
constname='Peter'constage=35//instead of the classic concatenationconsole.log(name+" is only "+age+" old!")//we can write something like this:console.log(`${name} is only ${age} old!`)
Another good addition to template literals is writing more readable code, for example:
Totally! String interpolation is probably one of my most used ES6 feature π―
Same here! Btw I forgot to mention great article! (Concentrated writing the example totally forgot about being polite π)
Youβre welcome! Btw, thanks for jumping back and leaving this kind comment π Youβre making this community really nice to a part of π
It also works