I am trying to remove certain items from an array with js
Here is my array
[
{
"Pizza": "Margarita",
"Size": "Twelve Inch Stuffed Crust",
"Base": "Deep Base",
"Price": "6.50"
},
{
"Pizza": "Hot Vegetarian",
"Size": "Twelve Inch",
"Base": "Deep Base",
"Price": "6.00"
},
{
"Pizza": "Vegetarian",
"Size": "Ten Inch Stuffed Crust",
"Base": "Deep Base",
"Pricelabel": "Price",
"Price": "6.50"
},
{
"Pizza": "Hot Vegetarian",
"Size": "Fourteen Inch Stuffed Crust",
"Base": "Deep Base",
"Pricelabel": "Price",
"Price": "10.50"
}
]
on my screen I have 4 delete buttons called "deletebutton_0,deletebutton_1,deletebutton_2,deletebutton_4
so for example if i click deletebutton_0 the js will remove all details of the first Item from the array,
{"Pizza":"Margarita","Size":"Twelve Inch Stuffed Crust","Base":"Deep Base","Price":"6.50"}
I'm a nob at js, still learning.