File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
1-js/05-data-types/04-array Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -100,11 +100,7 @@ Digamos que queremos el último elemento de un array.
100100
101101Algunos lenguajes de programación permiten el uso de índices negativos para este propósito, como ` fruits[-1] ` .
102102
103- <<<<<<< HEAD
104- 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
103+ Sin embargo, en JavaScript esto no funcionará. El resultado será ` undefined ` , porque el índice de los corchetes es tratado literalmente.
108104
109105Podemos calcular explícitamente el último índice y luego acceder al elemento: ` fruits[fruits.length - 1] ` .
110106
You can’t perform that action at this time.
0 commit comments