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.
Fixed
You didn't specify what your function should return. Although it seems you've solved the problem.
At least Function constructor is safer than eval.
Updated to Node v14
There is
assert.deepEqual
, no need to write your own assertion.Why is
Function.prototype.toString
disabled?Oh, I see. I guess I'll just replace it with
let x;
instead of removing it completely.What do you mean by that?
You can't, because
assert.deepEqual([1,2], [2,1])
will fail.Updated to Node v14
Updated to Node v14
it doesn't. "shadowing" implies overwriting, which is not the case here.
JS: Node v14 should be used along with its appropiate assertion tools (Mocha + Chai).
Refer to this and this
Okay, I've fixed that in the new fork. Thanks for reminding.
Oh, crap. My bad. I forgot that the task is actually to assign "a", not "Uh-oh!". "Uh-oh!" is the message you'll get if your solution fails.
Loading more items...