how do you know the index of the object in a list you have pressed 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