Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

obtener primer elemento de un array javascript

let myArray = ['a','b','c','d'];
oldArray.shift();//esta función retorna el elemento eliminado
console.log(myArray); //Outputs: ['b','c','d']
 
PREVIOUS NEXT
Tagged: #obtener #primer #elemento #de #array #javascript
ADD COMMENT
Topic
Name
7+4 =