Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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.
You need to return your array
c
. The text "a was ..., b was ..." is just an assertion message for the test.