I am trying to use an array in my code but I am getting an error message that says pop is not defined. I want to remove the number 50 from the array.
Here is what I tried:
let digits = [5,25,50,100]
let allDigits = digits
allDigits[pop](50)
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
I am trying to use an array in my code but I am getting an error message that says pop is not defined. I want to remove the number 50 from the array.
Here is what I tried:
let digits = [5,25,50,100]
let allDigits = digits
allDigits[pop](50)