Upper and Lower Number of Matches

Tell us what’s happening:

No matter which code I try, the compiler keeps showing “Running test” but no output.

I really need help at this junction.

Your code so far


let ohStr = "Ohhh no";
let ohRegex = /Oh{3,6}\sno/i; // Change this line
let result = ohRegex.test(ohStr);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/specify-upper-and-lower-number-of-matches/

I tried your solution and it works. Maybe close and open the browser again

Thank so much.

I have to stop using Microsoft edge browser and switch to chrome.

I have been stuck for some months and got discouraged.

Thank you.

1 Like