javascript splice
javascript
Solution
Change
MyArray = MyArray.splice(i, 1);
into
MyArray.splice(i, 1);
Problem
I have an array MyArray and I want to remove one element at position i. I tried: ``` MyArray = MyArray.splice(i, 1); ``` but it's returning the element I want to remove, instead of the array without the element I want to remove. I''m sure it's a simple fix, thanks anyway.