Deuxièmement, comme les tableaux JavaScript commencent en 0, et que les calculs parents/fils utilisent un système qui démarre en 1, il y a quelques calculs bizarres pour compenser cette différence.
Also, because JavaScript arrays start at 0, and the parent/child calculations use a system that starts at 1, there are a few strange calculations to compensate.
Les tableaux (Arrays) en JavaScript sont en fait un type spécial d'objets.
Note : L'opérateur du tableau (les crochets) est aussi utilisé pour accéder aux propriétés du tableau (en effet les tableaux sont des objets en JavaScript, et on peut donc utiliser leurs propriétés).
Note: the array operator (square brackets) is also used for accessing the array's properties (arrays are also objects in JavaScript).
Comment puis-je supprimer un élément particulier d'un tableau en JavaScript?
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?
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.
Les tableaux javaScript ont une magnifique méthode sort, qui peut être utilisée pour des tâches difficiles.
JavaScript arrays have a wonderful sort method, which can be used to do the heavy work.
Potentially sensitive or inappropriate content
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.