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
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
Look carefully at the example’s syntax. Make sure not to mix up the string vs. the regular expression.
Thanks…took me a minute but got it figured out from the example as you said