Tell us what’s happening:
Describe your issue in detail here.
I already removed all the backslahes, but still it doesnt work, can anyone tell the error here?
Your code so far
const myStr = `'<a href="hhtp//.www.example.com"target="blank">Link</a>'`;
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Challenge: Basic JavaScript - Quoting Strings with Single Quotes
Link to the challenge:
First of all, you’ve changed more than the instructions asked you to change, For example, you changed http
to hhtp
and you removed the colon. I would restart the lesson to get the original code back.
Then, only make the changes the instructions ask you for:
“change the outer quotes to single quotes so you can remove the escape characters”
Two thing:
- Change the outer quotes to single quotes
- Remove the escape character before the other quotes
Oh okay okay, I was so busy finding the other backslash without analyzing the whole code.
Thank you so much!!
It’s still the same. It still asks to remove the remaining backslash.
here’s my updated code
const myStr = '<a href="http://.www.example.com"target="blank">Link</a>';
I don’t have any backslashes here, only forward slashes.
Thank you for your response.
In your latest code, you have added an extra character after the two forward slashes that was not present in the original string. The test that shows not passing is misleading due to how it performs the test.
1 Like