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>Créer un tableau</h2> <p>Évitez d'utiliser new Array(). Utilisez [] à la place.</p> <p id="demo"></p> <script> //const points = new Array(40, 100, 1, 5, 25, 10); const points = [40, 100, 1, 5, 25, 10]; document.getElementById("demo").innerHTML = points[0]; </script> </body> </html>