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.
This comment is hidden because it contains spoiler information about the solution
I would like a little hint for this for case 2 too
thanks!~) i am understand where i`m wrong
The reason why I marked this as an issue is because using expect can devalue the kata experience and discourage people from completing because of the lack of descriptive response from the test cases. :)
Things like that you should propose as friendly suggestions rather than marking them as issues. But thanks anyways, I've switched to assertEquals.
This array cotains 4 elements, the last one has the value of
undefined
, so it should be popped. If you executedelete a[3]
, it will have 3 elements but thelength
will be 4, in which case3
is the value to pop.See also "Make your test descriptive".
Why method pops should return undefined in this test case [1,2,3,undefined].pops()===undefined ?
Accoding to the task we must except [1,2,3,undefined].pops()=== 3 or I don`t understand it right?
Don`t forget about context!
This comment is hidden because it contains spoiler information about the solution
Hi, I am marking the issue as resolved, as I have altered the test cases. Cheers.
How find out what code hide nested function?)
Thanks for the feedback! I have now implemented this change to have some results returning false.
Thanks for the feedback guys! I have now implemented these changes.
Click on submit btn running only random test and they are generate arrays that contain only square number.