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
Yeah, I found out we needed to provide more arguments to the functions. I thought this would be an exact copy of the first kata, that also got retired.
you did get that while having a mistake in your code, right?
'Cause, well... your code will interact with/affect the code running the tests, in this kata
What on earth does this mean? TypeError: suite.total is not a function
Hi,
Duplicate, as pointed below. @evanrh: do not close the issue, it's aslo a general flag and has meaning outside of the scope of your kata itself.
also, for further use (on different kind of tasks ;) ):
Cheers
Thanks for the feedback!
I didn't find this series when I was researching the topic initially.
I'll put my effort towards those problems instead.
Added a check in the preloaded code to disable requiring of the vm module
Sure!
I'll start with the map and filter functions.
Both map and filter's callback functions can take up to three parameters in the following order:
This means you can pass a callback that looks like this:
Reduce's callback follows a similar pattern:
Here's links to docs in MDN that explain it in further detail
https://www.codewars.com/kata/reviews/64d545985fd4000001e8b990/groups/64d57c875fd4000001e8c15e
Could you elaborate further on this point? I don't understand what the kata is asking me to do (should I pass the index to the function as a parameter or...?)
Python fork with random tests and standard failure messages: https://www.codewars.com/kumite/64b321a2206744001d337b9e?sel=64b321a2206744001d337b9e
Submitted a Javascript translation for this kata.
This comment is hidden because it contains spoiler information about the solution
I have never seen someone write a for loop that way. That is an interesting way to do so.
This code makes me happy.