Skip to content

Commit 00de24b

Browse files
committed
merging all conflicts
2 parents 1a0be8a + d78b01e commit 00de24b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

1-js/05-data-types/04-array/article.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,11 @@ Digamos que queremos el último elemento de un array.
100100

101101
Algunos lenguajes de programación permiten el uso de índices negativos para este propósito, como `fruits[-1]`.
102102

103+
<<<<<<< HEAD
103104
Aunque en JavaScript esto no funcionará. El resultado será `undefined`, porque el índice de los corchetes es tratado literalmente.
105+
=======
106+
However, in JavaScript it won't work. The result will be `undefined`, because the index in square brackets is treated literally.
107+
>>>>>>> d78b01e9833009fab534462e05c03cffc51bf0e3
104108
105109
Podemos calcular explícitamente el último índice y luego acceder al elemento: `fruits[fruits.length - 1]`.
106110

0 commit comments

Comments
 (0)