comparearray return difference code example Example: comparearray return difference let difference = arr1.filter(x => !arr2.includes(x));