Catch Mixed Usage of Single and Double Quotes . #noidea

Catch Mixed Usage of Single and Double Quotes . #noidea
0

#1

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;

console.log(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:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/debugging/catch-mixed-usage-of-single-and-double-quotes


#2

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.