DEV Community

Discussion on: Favorite String Literals

Collapse
 
fjones profile image
FJones

I have to disagree. Use the most-restrictive string literal whereever possible. Don't need apostrophes? Use '. Don' t need interpolation (in JS)? Use ".

Though, to be fair, I've reneged a bit on that and am now enforcing "" unless template literals are needed" in our linter rules.