Mostly it’s just about the code style that’s used in your project.
One interesting thing is that you don’t have to escape single quotes if your string is wrapped in double quotes.
const quotesInString = "I'm a string!";
If we were to use single quotes to wrap the same string, then we’d have to escape the inner single quote with
const quotesInString = 'I\'m a string!';
It also works the other way around for single quoted strings and double quotes in them.
const doubleQuotes = 'Double "quotes" are here!';