Exercise 7 · Chapter: ArraysRequired+50 XP
Remove Item
You have this array:
let items = ["pen", "book", "eraser", "ruler"];
Read an item name from input, remove that item from the array, and print the updated array.
Example input:
book
Example output:
pen,eraser,ruler
Need a hint?
3 available · costs 5 XP each
javascript
Output
Run your code to see the output here.