How can we give the index of an array as an ID to an element Code Example
how can we give the index of an array as an ID to an element
//Here the delete button gets a unique ID everytime, the ID is the array index of the element.
array.forEach(function (element, index) {
display =
display +
`