This is my code
var numbers = [14, 14, 16, 25];
for (var i = 0; i < numbers.length; i++){
if (numbers[i] === 14)
numbers.splice(i,1)
}
I want to delete all the "14" in the array.
This method just delete one duplicate value and return the array as [14,16,25]. But I want it to be [16,25]