Catch Mixed Usage of Single and Double Quotes
Hints
Hint 1
Remember whether you choose to use single or double quotes, simply adding a \
before the character will allow the character to fit in the string without closing either single or double quotes.
Solutions
Solution 1 (Click to Show/Hide)
let innerHtml = "<p>Click here to <a href='#Home'>return home</a></p>";
console.log(innerHtml);
Solution 2 (Click to Show/Hide)
let innerHtml = "<p>Click here to <a href=\"#Home\">return home</a></p>";
console.log(innerHtml);