Elemento empurrado de acesso a javascript

let newLength = myList.push(myElm);

myList[newLength - 1] // This then equals myElm
garzj