Tell us what’s happening:
Describe your issue in detail here.
I don’t have a question about the code to pass the challenge but I just need clarification on the difference between the functions of g and +. In a previous challenge, there was an example where g would match [“Repeat”, “repeat”, “repeat”], if we are adding g after /, then what is the point of using +?
Your code so far
let difficultSpelling = "Mississippi";
let myRegex = /change/; // Change this line
let result = difficultSpelling.match(myRegex);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36
Challenge: Match Characters that Occur One or More Times
Link to the challenge: