Please help to figure out. For example, i have 5 divs. I need to push it like one whole array into another array or obj, like this:
let array = [ [div , div , div, div, div], [more divs] ]
I'm trying to do that:
array[index][index].push(div)
But it's replace the previous content.. it's logical behavior I just want this array to be a placeholder for all of divs to simply show the necessary content on click Also i understand that it's a data structures that i'm bad in. If you have an advice how to better store it, i will be appreciate Thank you in advance