<a>
tag with various attributes in quotes, all within a string.
```js
conversation = 'Finn exclaims to Jake, "Algebraic!"';
```
However, this becomes a problem if you need to use the outermost quotes within it. Remember, a string has the same kind of quote at the beginning and end. But if you have that same quote somewhere in the middle, the string will stop early and throw an error.
```js
goodStr = 'Jake asks Finn, "Hey, let\'s go on an adventure?"';
badStr = 'Finn responds, "Let's go!"'; // Throws an error
```
In the goodStr above, you can use both quotes safely by using the backslash \
as an escape character.
Note\
should not be confused with the forward slash /
. They do not do the same thing.
<a>
tag in the string uses double quotes everywhere. You will need to change the outer quotes to single quotes so you can remove the escape characters.
backslashes
(\
)
testString: assert(!/\\/g.test(code) && myStr.match('\\s*\\s*Link\\s*\\s*'), 'Remove all the backslashes
(\
)');
- text: You should have two single quotes '
and four double quotes "
testString: assert(code.match(/"/g).length === 4 && code.match(/'/g).length === 2, 'You should have two single quotes '
and four double quotes "
');
```