js get last push index code example
Example: javascript access pushed element
let newLength = myList.push(myElm);
myList[newLength - 1] // This then equals myElm
let newLength = myList.push(myElm);
myList[newLength - 1] // This then equals myElm