JavaScript String Match ()

let text = "The rain in SPAIN stays mainly in the plain";
text.match(/ain/g);
naly moslih