Quoting Strings with Single Quotes – freeCodeCamp

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.

const myStr = '<a href="http://www.example.com" target="_blank">Link </a>';
0 0 votes
Article Rating
Was this article helpful?
YesNo
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
Scroll to Top