Assessment for JavaScript skills assignment array 3

This is the assignment
https://developer.mozilla.org/fr/docs/Learn/JavaScript/First_steps/Test_your_skills:Arrays#recevoir_une%C3%A9valuation_ou_de_laide

Array Exercise 3
Link to my code