Quoting Strings with Single Quotes Help

It says I need to remove “backslashes” in order to complete the solution. However, I do not see the last backslash I need to remove.


Directions:
Change the provided string to a string with single quotes at the beginning and end and no escape characters.

Right now, the <a> tag in the string uses double quotes everywhere. You will need to change the outer quotes to single quotes so you can remove the escape characters.


My Solution:

const myStr = '< a href=“http:www.example.com” target="_blank">Link ';


Solution Hints:

(Unchecked)You should remove all the backslashes ( \ ).

(Checked)You should have two single quotes ' and four double quotes " .

ugh, never mind. I go it. I made a mistake and removed the backslashes from the http://

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.