var smartphones = []; smartphones[1] = "iPhone4"; // résultat dans la console: "iPhone4" remplace "iPhone7" smartphones[33] = "iphone6"; smartphones; // résultat dans la console: Array(34) [undefined × 1, "iPhone4", undefined × 31, "iphone6"]