mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-25 18:02:11 -05:00
315 B
315 B
title, localeTitle
| title | localeTitle |
|---|---|
| Manipulate Arrays With push() | Manipular matrizes com push () |
Manipular matrizes com push ()
O método push() permite acrescentar (adicionar ao final) um elemento a um array. Igual a…
var arr = [1, 2, 3, 4];
arr.push(5); // Now, the array is [1, 2, 3, 4, 5]