Regular Expressions: Find More Than the First Match

https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/regular-expressions/find-more-than-the-first-match

Can’t pass the tests. Keep getting starRegex.match is not a function

let twinkleStar = "Twinkle, twinkle, little star";
let starRegex = /twinkle/gi; // Change this line
let result = starRegex.match(twinkleStar); // Change this line

Thanks…took me a minute but got it figured out from the example as you said