Ad
  • Custom User Avatar

    Yes. If a test looks like this: assert.deepEqual(arrayDiff([1,2,2], [2]), [1], "a was [1,2,2], b was [2]");, your returned value should be [1].

    If your result is wrong, you'll get this message: expected ABC to deeply equal XYZ.
    Here, "ABC" is your result and "XYZ" is the correct solution.

  • Custom User Avatar

    You need to return your array c. The text "a was ..., b was ..." is just an assertion message for the test.