Exécuter
❯
Exécuter le code
Ctrl+Alt+R
Enregistrer le code
Ctrl+Alt+A
Changer d'orientation
Ctrl+Alt+O
Changer de thème
Ctrl+Alt+D
<!DOCTYPE html> <html> <body> <h1>Tableaux JavaScript</h1> <h2>Déclaration d'un tableau en utilisant const</h2> <p id="demo"></p> <script> const cars = ["Saab", "Volvo", "BMW"]; // Ici cars[0] est "Saab" It seems that the text you intended to provide for translation is incomplete. Please provide the full text you would like to have translated, and I'll be happy to assist you! const cars = ["Toyota", "Volvo", "BMW"]; // Ici cars[0] est "Toyota" } // Ici cars[0] est "Saab" document.getElementById("demo").innerHTML = cars[0]; </script> </body> </html>