Hi yall, can someone please explain the difference between using brackets and not using brackets please, from what i understood using the global g, and using brackets are both used for finding multiple matches?
Your code so far
let difficultSpelling = "Mississippi";
let myRegex = /ss+/g; // 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/106.0.0.0 Safari/537.36 Edg/106.0.1370.34
Challenge: Regular Expressions - Match Characters that Occur One or More Times
Link to the challenge: