var smartphones=["GalaxyS8", "iPhone7", "Honor9"]; for (var i = 0; i < smartphones.length; i++) { console.log(smartphones[i]); } // résultat dans la console : "GalaxyS8" "iPhone7" "Honor9"