Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

como acrescentar item no array js

var numeros = [1, 2, 3];
numeros.push(4);

console.log(numeros); // [1, 2, 3, 4]

numeros.push(5, 6, 7);

console.log(numeros); // [1, 2, 3, 4, 5, 6, 7]
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #como #acrescentar #item #array #js
ADD COMMENT
Topic
Name
2+1 =