Many standard linters will scold you for using backticks when they aren’t actually needed, I believe the main reason is that they are significantly less performant because they need to be processed. You could argue that’s premature optimization, but I would generally be in favor of using the right flavor of literal for the job at hand ☺️

Great article, keep up the good work!

Update

Dr. Derek Austin 🥳 followed up on this and was able to correct my assumption: it turns out there’s minimal performance difference between backtick string literals and quoted string literals, and in his tests, found backtick string literals were actually slightly faster!

Software Engineer since 2007 ・ Parent ・ Mediocre Runner ・ Flower and Tree Enthusiast ・ Crappy Wood Worker ・ he/him or they/them

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store