diff options
author | Florian Dieminger <me@fiji-flo.de> | 2021-02-11 18:20:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-11 18:20:58 +0100 |
commit | 2318b37e3fd17a3e76a29b9be7d1ce82f040c3bb (patch) | |
tree | 5e640d40fd69dc380b04e01de981a345e0141ffa /files/es/glossary/array/index.html | |
parent | 6aa6274d2ad3e22e7f5e69b1d7531a5eaeaf5666 (diff) | |
parent | 8a5554c6fae83e92b10c8dbe5b82108cb44fad6c (diff) | |
download | translated-content-2318b37e3fd17a3e76a29b9be7d1ce82f040c3bb.tar.gz translated-content-2318b37e3fd17a3e76a29b9be7d1ce82f040c3bb.tar.bz2 translated-content-2318b37e3fd17a3e76a29b9be7d1ce82f040c3bb.zip |
Merge pull request #53 from fiji-flo/unslugging-es
Unslugging es
Diffstat (limited to 'files/es/glossary/array/index.html')
-rw-r--r-- | files/es/glossary/array/index.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/files/es/glossary/array/index.html b/files/es/glossary/array/index.html new file mode 100644 index 0000000000..cf3f7346e1 --- /dev/null +++ b/files/es/glossary/array/index.html @@ -0,0 +1,42 @@ +--- +title: Arreglos (Matrices) +slug: Glossary/array +tags: + - Arreglos + - CodificaciónScripting + - Glosario + - JavaScript + - Matriz + - programacion +translation_of: Glossary/array +original_slug: Glossary/Arreglos +--- +<p>Un arreglo (matriz<em>)</em> es una colección ordenada de datos (tanto {{glossary("Primitivo", "primitivos")}} u {{glossary("Object", "objetos")}} dependiendo del lenguaje). Los arreglos (matrices<em>)</em> se emplean para almacenar multiples valores en una sola variable, frente a las variables que sólo pueden almacenar un valor (por cada variable).</p> + +<p>Cada elemento del arreglo (matriz) <em> </em>tiene un número al que está asociado, llamado "<strong>índice numérico"</strong> (numeric index)<strong>,</strong> que permite acceder a él.</p> + +<p>En JavaScript, los arreglos (matrices) comienzan a partir del índice cero y pueden ser manipulados con varios {{glossary("Método", "métodos")}}.</p> + +<p>Un arreglo (matriz<em>)</em> en JavaScript se ve de esta forma:</p> + +<pre><code>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 +</code> +</pre> + +<h2 id="Saber_más">Saber más</h2> + +<h3 id="Conocimiento_general">Conocimiento general</h3> + +<ul> + <li>{{Interwiki("wikipedia", "Array data structure", "Array")}} en Wikipedia</li> +</ul> + +<h3 id="Referencia_técnica">Referencia técnica</h3> + +<ul> + <li>JavaScript {{jsxref("Array")}} en MDN</li> +</ul> |