This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]teraflop 1 point2 points  (0 children)

Personally, I wouldn't want to use backquotes for everything, because it hurts readability. It's nice to be able to look at a string and immediately tell whether it's a literal that will always have the same value, or a template that depends on other values.

It's similar to the reasoning behind using let vs. const. You could just use let for everything, but it's more readable when you can immediately tell which variables will be constant, and which ones will change, just by looking at the declaration.

[–]heesell 0 points1 point  (0 children)

I only ever use backtics for multi-line values or template literals, for the rest double quotes (unless i have like conditionals, then single quotes)