Double quotes vs single quotes in JavaScript [duplicate]

The difference is that you don’t need to escape single quotes in double quotes, or double quotes in single quotes. That is the only difference, if you do not count the fact that you must hold the Shift key to type ".

Leave a Comment