Quoting Strings with Single Quotes

Quoting Strings with Single Quotes
0.0 0

#1

‘This string has “double quotes” in it. And “probably” lots of them.’(Assigned this string to var myStr)

Remove all the backslashes () - Green Tick
You should have two single quotes ’ and four double quotes " - Green Tick
Only remove the backslashes \ used to escape quotes. - Red Cross Sign

What should I do to complete this task?


#2

What task is this?
Where were the backslashes in the beginning?


#3

You’re not supposed to use that string. Instead you’ll use what’s written in the editor (this string:
"<a href=\"http://www.example.com\" target=\"_blank\">Link</a>").

For now reset your code and try again.


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

please try this


#5

The last post to this was almost 10 months ago. I am closing this old thread, so that no one else throws in a random solution.


#6