Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript access pushed element

let newLength = myList.push(myElm);

myList[newLength - 1] // This then equals myElm
 
PREVIOUS NEXT
Tagged: #javascript #access #pushed #element
ADD COMMENT
Topic
Name
2+7 =