Tell us what’s happening: I am unable to hit the “run the tests” button. It seems to have stopped functioning so I am unable to proceed.
**Your code so far**
var myStr = "I am a \"double-quoted"\ string inside \"double quotes"\.";
**Your browser information:**
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.146 Safari/537.36.
Challenge: Escaping Literal Quotes in Strings
Link to the challenge:
ILM
2
is there something written in the console, where the “running tests” should appear?
Yes. Run the tests appears there. but nothing happens when i click on it
ILM
4
No, I mean this:
SyntaxError: unknown: Expecting Unicode escape sequence \uXXXX (1:37)
> 1 | var myStr = "I am a \"double-quoted"\ string inside \"double quotes"\.";
| ^
it appears in Tests on mobile view or the console in desktop view:
console in desktop view , I believe
ILM
6
then you should see it, it’s just below the editor
that error is why the tests are not running
what should i do to remove that error
ILM
8
you are not escaping the quotes so the string ends prematurely and you get that error
I believe I did the right thing. kindly go through my code and tell me where I could be wrong
ILM
10
this quote is not escaped
look at error, it is pointing at the issue
var myStr = "I am a \"double-quoted\" string inside \"double quotes\". ";
I corrected it earlier. the error still shows
ILM
12
I don’t see the error now, I can run the tests (which are failing, but they run)
they are failing because your strig needs to match exactly with no extra characters
it has been resolved. Thank you