freeCodeCamp Challenge Guide: Specify Only the Lower Number of Matches

Specify Only the Lower Number of Matches


Solutions

Solution 1 (Click to Show/Hide)
let haStr = "Hazzzzah";
let haRegex = /Haz{4,}ah/; // Change this line
let result = haRegex.test(haStr);
7 Likes