Tell us what’s happening:
Something is incorrect with debug tools, since test functions only care about whether your string has enough “h” or not.
Your code so far
let ohStr = "Ohhh no";
let ohRegex = /h{3,6}/g; // Change this line
let result = ohRegex.test(ohStr);
console.log(result)
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36
Challenge: Regular Expressions - Specify Upper and Lower Number of Matches
Link to the challenge: