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.
😂
Nice, how did you figure that out?
Then how does this solution passed?
O(1)
orO(log n)
?true enough, but at time of writing the code, default parameters threw out the syntax highlighting on codewars
Spoiler flag, please... (messages are visible form the dashboard!)
This comment is hidden because it contains spoiler information about the solution
this works, but nicer is using ES6 default parameters https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Functions/Default_parameters
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This works, but much nicer in ES6 is to use default parameters https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Functions/Default_parameters
You shouldn't need to do this.species = ..., this.legs = ... etc in the Shark, Dog and Cat Classes. By calling super the parent class (Animal) is setting these properties for you.
i do not know the meaning of that word before,,,,,,,,,
sorry,,,,,
it is my mistake.
Its a typo, english is not his first language. He's my student.
I don't know if this is specifically what you were referring to when you commented on naming, but... wow, the name of that second function is REALLY rude where I come from.
Loading more items...