Skip to content

Simplon-Narbonne/exo_array_correction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Tableaux

  • Step 1 : Créer un fichier index.html, et un fichier app.js,
  • Step 2 : Les liés,
  • Step 3 : Récupérer ce tableau :
var array = [['Pomme','Orange','Carotte','Courgette','Citron'],['Citron','Tomates','Concombre','Olive']];
  • Step 4 : Afficher tout les éléments du tableaux array,

  • Step 5 : Trier par ordre alphabétiques les éléments du tableaux d'index 1, du tableau array,

  • Step 6 : Ajouter l'élément 'Poivron' dans le tableau d'index 0, du tableau array,

  • Step 7 : Enlever l'élément 'Citron' dans le tableau d'index 1, du tableau array,

  • Bonus :

  • Step 5 : Rajouter l'élément 'Poivron' à l'index 0 du tableau d'index 0 du tableau array,

  • Créer une variable newArray qui contient directement tout les éléments du tableau array,

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors