Files

28 lines
623 B
Markdown
Raw Normal View History

2018-10-12 15:37:13 -04:00
---
title: Catch Mixed Usage of Single and Double Quotes
---
# Catch Mixed Usage of Single and Double Quotes
2018-10-12 15:37:13 -04:00
---
## 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
<details><summary>Solution 1 (Click to Show/Hide)</summary>
2018-10-12 15:37:13 -04:00
```javascript
//Solution1:
let innerHtml = '<p>Click here to <a href="#Home">return home</a></p>';
2018-10-12 15:37:13 -04:00
console.log(innerHtml);
```
</details>