How do you remove a item from a list in js? Like a = "somenumberinlist" and then remove a from the list.
function generate(arr) { return arr[Math.floor(Math.random() * arr.length)] } arr.splice(generate(arr), 1)
How to remove item from list
How do you remove a item from a list in js? Like a = "somenumberinlist" and then remove a from the list.