0

Can I always use backticks or not and why? I noticed that people often have single quotes, although the functionality of backticks is more.

  • 1
    Backticks imply that this is a template string or a multiline string. I would think that this is a mistake if it was just a regular string. – Konrad Jan 17 '23 at 14:57
  • 1
    Exactly, you can use always backticks is you prefer. – Roko C. Buljan Jan 17 '23 at 14:57
  • 2
    Certain constructs like the [`import` statement](//developer.mozilla.org/en/docs/Web/JavaScript/Reference/Statements/import) require strings with `"` or `'`. Be aware of that. – Sebastian Simon Jan 17 '23 at 14:59

0 Answers0