so I have to show every month with the letter R in it (month is "mois" in french, all the month name are in french sorry)
I think I got it right but for some reason it displays all the months idk why
var mois =['Janvier','Février','Mars','Avril','Mai','Juin','Juillet',
'Aout','Septembre','Octobre','Novembre','Décembre'];
for(var i =0;i<mois.length;i++)
{
if(mois[i].indexOf('r'))
{
document.writeln(mois[i])
}
}