* fix: restructure certifications guide articles * fix: added 3 dashes line before prob expl * fix: added 3 dashes line before hints * fix: added 3 dashes line before solutions
623 B
623 B
title
title |
---|
Catch Mixed Usage of Single and Double Quotes |
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.
Hint 2
The test cases will only be passed by using double quotes.
Solutions
Solution 1 (Click to Show/Hide)
//Solution1:
let innerHtml = '<p>Click here to <a href="#Home">return home</a></p>';
console.log(innerHtml);