The other day I replaced a dependency to printf, someone needed to put a string in the middle of another string: printf('abc%sdef', val).
In ES6 this can be nicely substituted with: this function val =>
abc${val}def
.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
What if the template is dynamic? >
Response: 939446167083077633