Subsequence And Subarray Javascript Error Meaning