Please what wrong with this code

Tell us what’s happening:

Your code so far

var myStr = "<a href="http"://'\'" 

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 9; SM-A105F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Mobile Safari/537.36.

Challenge: Quoting Strings with Single Quotes

Link to the challenge:

Take a good look at the example bellow.

goodStr = 'Jake asks Finn, "Hey, let\'s go on an adventure?"'; 

Quotes can be:
Single double Single
Single double double Single

1 Like

what you needed to do was to change the quotes wrapping the string from double quotes to single quotes, instead you added sorta randomly quotes inside the string

and after changing the quotes wrapping the string to single quotes you can then remove the escape characters

          this one
var myStr = "<a href=\"\" target=\"_blank\">Link</a>";
                                                                     and this one

and then remove the escape characters

                   this                    this      this    this
                     |                       |         |       |
var myStr = "<a href=\"\" target=\"_blank\">Link</a>";
1 Like