array filter function is not a valid name code example Example: filter out arrays js let newArray = array.filter(function(item) { return condition; });