Match Characters that Occur Zero or More Times

Hey, so i got a problem in almost all Tests of the “Regular Expressions” Section of JavaScript Algorithms and Data Structures. A typical Layout for theses Tests is
let quoteSample = “The quick brown fox jumps over the lazy dog.”;
let alphabetRegex = /change/; // Change this line
let result = alphabetRegex; // Change this line
were you write your Regex in Line two and change Line 3 into something like this:
let result = quoteSample.match(alphabetRegex); // Change this line
As soon as im at the following point in Line 3 “let result = quoteSample.match(; // Change this line” I get a Syntax error.
There are two Problems I’m not able to fix after it. A) no matter what i do the message about the Syntax error ist not disappearing except if i “Reset the lesson”. But thats when Problem B occurs: I can’t “Run the Tests” anymore in this Browser. So i copy my Code, open another Browser paste it in there, “Run the Tests” get the “Download my Solution/Test Succesfull message” have to reload the original browser so it has the Data that i finished the Test and move on to the next one.
It’s like the Editor is frozen after it finds the first Syntax Error and unable to comprehend any changes to the code or commands i am giving it. Also it’s not always at that same point i’m getting the Syntax Error but neither have i transcribed every single instance of it happening nor would that fit in one single Post. But it happened a lot in the first 13 Tests of that course.

There is an issue at the moment with the console not updating, but there is an easy workaround:

  1. Copy your code
  2. Refresh the page (CTRL+F5)
  3. Paste your code

This will refresh the console too. You may need to do this each time the console gets stuck, until you have correct code to pass the challenge.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.