function remove(arr, item) { let newArr = [] for(let i in arr){ if(arr[i] !== item){ newArr.push(arr[i]) } } return newArr }