With the introduction of template literals for JavaScript, it has much advantage over single quote and double quote as per mentioned in https://ponyfoo.com/articles/template-literals-strictly-better-strings.
In term of performance, there's no obvious different between them as stated in https://medium.com/javascript-in-plain-english/are-backticks-slower-than-other-strings-in-javascript-ce4abf9b9fa
So my question is, is there any case where template literals can't be used other than the case of printing "Testing ${something}"
where then back-tick need a slash as in `Testing \${something}`
I have checked various related existing Stackoverflow
- JavaScript ES6, backticks or quotes?
- Is there a downside to using ES6 template literals syntax without a templated expression?
- Should we use backticks to quote string literals now?
From the stackoverflows, can't see anything that shows a single quote or double quote is required that can't be achieved by backtick, other than stating it as easier distinguish the different purpose.