Error in Testing Javascript

Tell us what’s happening:
I receive this error on this javascript exercise, but it seems to be on all exercises that I attempt:

Error: Request errror: 0

Any help?

Your code so far


let myString = "Hello, World!";
let myRegex = /Hello/;
myRegex.test(myString); // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:64.0) Gecko/20100101 Firefox/64.0.

Hi @EECS,

You have to assign myRegex.test(myString); to var result in order to pass the exercise

1 Like

Hello @Sunithack1,

Thanks for the response. Unfortunately that does not seem to change anything, I’m still getting an error upon execution. My code is now this as below, and the error still exists:

let myString = “Hello, World!”;

let myRegex = /Hello/;

var result = myRegex.test(myString); // Change this line

Which browser are you using?

Mozilla Firefox 64.0.2

I use Chrome and I am able to pass the exercise. Could you try with Chrome?

Hi @camperextraordinaire,

I believe this is the link to the exercise:

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/using-the-test-method

1 Like

It works now! I updated firefox and restarted the browser and it’s working again. I received this error on every exercise prior to the update, but it seems to be gone now. Thanks all!

1 Like

@EECS,

Just for your future reference, whenever you create a forum topic like this, share the link to the challenge along with the problem description. It helps to understand the issue better :slight_smile: