From a55b575e8089ee6cab7c5c262a7e6db55d0e34d6 Mon Sep 17 00:00:00 2001 From: Florian Merz Date: Thu, 11 Feb 2021 14:46:50 +0100 Subject: unslug es: move --- files/es/glossary/array/index.html | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 files/es/glossary/array/index.html (limited to 'files/es/glossary/array') diff --git a/files/es/glossary/array/index.html b/files/es/glossary/array/index.html new file mode 100644 index 0000000000..74b22dbedc --- /dev/null +++ b/files/es/glossary/array/index.html @@ -0,0 +1,41 @@ +--- +title: Arreglos (Matrices) +slug: Glossary/Arreglos +tags: + - Arreglos + - CodificaciónScripting + - Glosario + - JavaScript + - Matriz + - programacion +translation_of: Glossary/array +--- +

Un arreglo (matriz) es una colección ordenada de datos (tanto {{glossary("Primitivo", "primitivos")}} u {{glossary("Object", "objetos")}} dependiendo del lenguaje). Los arreglos (matrices) se emplean para almacenar multiples valores en una sola variable, frente a las variables que sólo pueden almacenar un valor (por cada variable).

+ +

Cada elemento del arreglo (matriz)  tiene un número al que está asociado, llamado "índice numérico" (numeric index), que permite acceder a él.

+ +

En JavaScript, los arreglos (matrices) comienzan a partir del índice cero y pueden ser manipulados con varios {{glossary("Método", "métodos")}}.

+ +

Un arreglo (matriz) en JavaScript se ve de esta forma:

+ +
var myArray = [1, 2, 3, 4];
+
+var catNamesArray = ["Jacqueline", "Sophia", "Autumn"];
+
+//Los arreglos en Javascript pueden guardar distintos tipos de datos como se muestra anteriormente
+
+
+ +

Saber más

+ +

Conocimiento general

+ + + +

Referencia técnica

+ + -- cgit v1.2.3-54-g00ecf