Please help to replace Quoting Strings with Single Quotes

Please help to replace Quoting Strings with Single Quotes
0

#1

Tell us what’s happening:

Your code so far

var myStr = "<a href=\"http://www.example.com\" target=\"_blank\">Link</a>";

myStr = myStr.replace("/\"/g","'");

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36.

Link to the challenge:


#2

This challenge simply wants you to manually change the escaped double quotes to single quotes. You do not need to use the replace function with Regex.


#3

var myStr = ‘<a href`=“http://www.example.com” target=“blank”>Link’;
what’s wrong with this statement?