Should I be using (` - back tick) for all strings?


Since I’ve discovered the backtick. Should we/I now be using this in place of all apostrophes and quotation marks?

It seems to work in place of quotation marks and apostrophes so am now wondering if I should be making it best practice to use the backtick for all relevant situations?

any help is greatly appreciated


Backticks should not be used with Strings. Strings should be defined using double quotes, and in some cases, single quotes.


thank you for clearing that one up. So just use back ticks when interpolating strings? ${}


That’s correct. I believe it used to be more interchangeable with a single quote but it’s much more useful for more cleanly interpolating strings.


Hi @bubbaspaarx,

Back tick is part of the ES6 syntax in JavaScript often referred as Template Literals. It has its own features of when to be used. Just sharing two links that might be useful for you, a bit in-depth but you can get the general idea:

The documentation:

Some explanation:

Enjoy your read. :slight_smile:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.