Ah les tableau, tellement pratiques mais leurs utilisation change d'un langage à l'autre.

Voici un rappel pour Javascript

Tableau

var monTab = ["pomme", "poire", "banane"];

 

for(var i = 0; i<monTab.length; i++)
{
    console.log(monTab[i]);
}

 

Objets

var monTab = {"a": "pomme", "b": "poire", "c": "banane"};

 

for(var key in monTab )
{
    console.log(monTab[key]);
}

 


Warning: Parameter 2 to modChrome_artblock() expected to be a reference, value given in /var/www/bidoum.fr/templates/bleu/html/modules.php on line 39

Warning: Parameter 3 to modChrome_artblock() expected to be a reference, value given in /var/www/bidoum.fr/templates/bleu/html/modules.php on line 39