Skip to content

Tag: arrays

Issue with component array filter

I want to create multiple components and delete them by pressing on button click. I created the components. But i can’t delete it. I wanted to give unique id to the Card component. But when i click one of cards’ buttons,all of cards are gone. I displayed the component array like this: Answer From …

Mapping in map in json response

I need to parse json api response, with response.data equals: and I need to return one array[String] with all subcategories, ex [“web-development”, “backend-development” … “3D modeling”] All that I did is: and it returns Array of arrays with categories. Im sure, that …

JavaScript – Adding the totals in Array with same index

I have moved on to learning about looping over arrays and hit a hurdle – did try researching but I think I am probably not describing properly… I have managed to total each line in the array. I did create another variable called total but not sure I needed that… I get the output below, which…