How to interpolate variables in strings in JavaScript, without concatenation?
You can take advantage of Template Literals and use this syntax: Template literals are enclosed by the back-tick (` `) (grave accent) instead of double or single quotes. This feature has been introduced in ES2015 (ES6). Example How neat is that? Bonus: It also allows for multi-line strings in javascript without escaping, which is great for templates: Browser support: … Read more