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.
I would still use
else if
. It makes clearer for the reader what is going on on a glance. That said it doesn't matter for how the code runs withreturn
.Is it preferred to chain a bunch of 'ifs' rather than the typical 'else ifs'? Or is it just whatever you want to do it fine?
Thank you guys for the links. I am a little pressed on time but I will try to learn random tests ASAP.
Was this article unhelpful too?
https://docs.codewars.com/languages/javascript/authoring
I suggest you search amongst the kata you've completed that have a similar data structure.
Thank you, however I did a few searches on how to write randomized JS tests, and I did not find much that made sense to me right off the bat. Is it something simple? Any examples to share?
No Random Tests.
Please read this portion of the documentation on authoring a kata.
You can also peruse the random tests of quality kata which you have solved to find a good model for creating random tests.
Thank you. Fixed.
Awesome thank you. My first challenge published, I forgot to proof read.
Another typo in the description: "vitrue"
Thanks for letting me know about the typos, I just fixed them. And the sentence you questioned is just Stoic philosophy. They call everything indiffent, and the only time something good or bad happens, is when we respond to an indifferent in a particular way.
What does this even mean?
Please check your spelling. "temperence" and "intemperence" are consistently wrong in tests, and the description is inconsistent about it.
Turn the lets into consts. Fix format. And sorry for being annoying.
Does this comment give me honor?