- 1

JS line 48 error. It is not deleting the element from the array.

This is my code: https://codepen.io/AlexTAG/pen/dyzrrmY?editors=0010 So at js line 48, i am deleting an element of type Fish from the array fList inside the class FishList but it is not working and I don't understand why. I have tried to fix it but it is not working. Help.

21st Nov 2021, 11:09 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
1 Antwort
0
Cos splice syntax is array.splice(INDEX, 1)
24th Nov 2021, 3:41 AM
Alexey Kopyshev
Alexey Kopyshev - avatar