Cette méthode renvoie un tableau en JavaScript, et peut également être appelée sur l'élément document ou sur d'autres nœuds pour chercher uniquement parmi leurs descendants dans l'arbre.
The method returns an array in JavaScript, and can be called on the document element or other nodes to search only their subtree.
Comment puis-je supprimer un élément particulier d'un tableau en JavaScript?
On accède aux éléments par l'indice comme expliqué dans le chapitre Les tableaux en JavaScript.
Elements can be accessed by the index as explained in the chapter Arrays and JavaScript.
Vous remarquerez que les tableaux en JavaScript sont indexés à partir de zéro : le premier élément a l'index 0.
You might have noticed that arrays in JavaScript are zero-indexed: the first element is at index 0.
L'objectif de ce test est d'évaluer votre compréhension de l'article sur les tableaux en JavaScript (arrays).
The aim of this skill test is to assess whether you've understood our Arrays article.
Correction d'un bug où ayant des éléments avec des noms représentant des propriétés de tableau en JavaScript (longueur, constructeur, prototype) se traduirait par des messages d'erreur ne montrant pas pour cet élément particulier dans la validation côté client.
Fixed a bug where having elements with names representing array properties in JavaScript (length, constructor, prototype) would result in error messages not showing for that particular element in client-side validation.
Il n'y a pas vraiment de tableau associatif en JavaScript.
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.