removing a specific string in array code example Example: remove a specific element from an array array.splice(array.indexOf(item), 1);