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