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.
if first letter is upper case it wouldn't be camelCase it would be PascalCase
My question exactly until I read Chroo79's comment. I initially made a whoel if, if else, else statement to factor in null but I love how short and sweet this is.
Hello dani1995ar,
Yes I agree --> keep coding... :)
changed
"Try writing it in readable code" would be a better challenge.
I'm not quite sure that this is a 7 kyu kata, or I'm too bad
man, thank you very much, comming from a (basic understanding of) python background I thought that the expression would only return true or false, this blew my mind.
No. Read this: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_AND
This comment is hidden because it contains spoiler information about the solution
The solutions are simple ... but don't loop everything
Some people are better at math than others. It's just the way of things. You could have used a loop instead. Not so clever but just as efficient
I understand how it works and why it works, but what I'd like to know is how he got to that point? like how'd you end up with the exact formula that does it? could someone perhaps explain what the thought process coul've been for this? thanks.
OMG thank you very much, I know what I have to do now
Yes, you can visualize it like this:
Loading more items...