There’s no functional difference between single and double quotes in JS. Both could be used to create JavaScript strings.

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!';