"This string has \"double quotes\" in it"
The value in using one or the other has to do with the need to escape quotes of the same type. If you have a string with many double quotes, this can be difficult to read and write. Instead, use single quotes:
'This string has "double quotes" in it. And "probably" lots of them.'
Solution 1 (Click to Show/Hide)
var myStr = '<a href="http://www.example.com" target="_blank">Link</a>';