Catch Mixed Usage of Single and Double Quotes

Tell us what’s happening:

Your code so far

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

Your browser information:

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

Link to the challenge:

Read the description carefully

Fix the string so it either uses different quotes for the href value, or escape the existing ones. Keep the double quote marks around the entire string.

1 Like

This is the solution, remember to escape you need to set a \ before you escape your sign

\ "#Home \ "

When you copy this code in the editor to not forget to remove the space between the \ und the " :slight_smile: otherwise it will not work