In an array I want to find the index of a value and then remove that value. The constraint is that I have to use core JavaScript without any frameworks.
let array = [9,8,7,6,5,4,3,2,1];
How can I find the index of ‘4’ and remove it from the array using core JavaScript?
2
Answers
You don’t need to find the value from Index 4 in order to remove it, you can just blindly remove it using Array.splice()