The little black box/window shows the results of the test - Is that correct?
See the screenshot. I moved the black box next to the test data results. Can anyone see a difference?
I am returning an array for the first test.
My result for the second test is an array with a length of 6. (Screenshot)
My result for the third test seems to match the results in the test data:
Am I missing something as to why these results are not accepted?
Is there a formatting issue?
(I have been staring at the code for awhile. But, I got up and took a break to try to look at it with somewhat fresh eyes.)
Help would be appreciated.
I ran the code in a Chrome Browser and wrote the results to the console, if that is helpful.
The screenshot is to the left of the thick black line.
The console log is what is to the right of the thick black line.
At the start you define 2 useless variables (currInv and newInv), and you are working strictly with thoses, hijacking the functions arguments (arr1, arr2).
You can simply replace every occurence of currInv with arr1 and newInv with arr2 to make it pass every tests.