10-04-2021, 04:45 AM
(This post was last modified: 10-04-2021, 04:46 AM by Programmer.)
I have an array of numbers and I'm using the .push() method to add elements to it.
I have to use core JavaScript. Frameworks are not allowed.
Is there a simple way to remove a specific element from an array?
I'm looking for the equivalent of something like:
Code:
array.remove(number);
I have to use core JavaScript. Frameworks are not allowed.