Hi, I am doing a project for school involving arrays. And i am wondering if there’s a way to remove a specific element from an array. Like say I have an array with 5 elements. Is there a way to remove the third elment and have the array now have the former fourth element as the third elment and so on. Thanks for taking the time to read.
There are quite a number of ways to aid your problem. Depends on your future problem cases.
But for the time being, I’d recommend using .splice , as they rather useful for array problems.
I’d argue that this is a bad practice because you’re suggesting to use splice() which mutates original array.
Thanks for the additional inputs. I believe is a great help to @selmatheseal and certainly, no doubt, I have homework to do as well.
Nonetheless, thank you and keep the suggestions coming for one another’s improvements =)