Hey, you’re overthinking it a bit. In this challenge, the original string uses double-quotes everywhere. Because of that, every double quote inside the string has to be escaped.
var myStr = "<a href=\"http://www.example.com\" target=\"_blank\">Link</a>"
Since typing backslashes sucks, it’s nice to enclose the entire string in single quotes and then the double quotes don’t need to be escaped anymore. So basically, solving this challenge requires two steps:
- Change only the outermost double quotes to single quotes
- Remove all the escaped characters inside the string.
This is just what it says in the instructions:
Change the provided string to a string with single quotes at the beginning and end and no escape characters.
The problem with your attempt right now is that you’re putting single quotes throughout the string, rather than just using them at the beginning and end.
Hope this helps. Reply if you have questions. Good luck!