javacript filter function code example Example: does filter change original array Note: filter() does not change the original array.