Description is wrong.
console.log(goRegex) displays only /go*/
But descriptions says it will be ["goooooooo"] , ["g"] , and null .
Your code so far
let soccerWord = "gooooooooal!";
let gPhrase = "gut feeling";
let oPhrase = "over the moon";
let goRegex = /go*/;
soccerWord.match(goRegex);
gPhrase.match(goRegex);
oPhrase.match(goRegex);
console.log(goRegex)
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Safari/537.36
Challenge: Match Characters that Occur Zero or More Times
The description is correct, if a little unclear. goRegex and the matches (soccerWord, etc.) have the values indicated. If you log the matches, instead of just logging the regular expression: