Catch Mixed Usage of Single and Double Quotes . #noidea

Tell us what’s happening:
Hello i cannnot understand the solution of this.
i need some help please :slight_smile:

Your code so far

var innerHtml = "<p>Click here to <a";

var href = "'#Home'>return '#Home'</a></p>";

return innerHtml;


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge:

You don’t need to create a new variable. You just want to edit the existing string. The requirement is that the outermost quotes must be "s. You can choose between using "s in the string (which requires escaping them) or changing the quotes inside the string to use 's.

1 Like
let innerHtml = "<p>Click here to <a href= \"#Home\">return home</a></p>";