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.
That's facinating!!
Oh wow, you're right. This is an even better solution than I first thought!
This passes tests, because
humanYears
is specified to be>= 1
. So no. There is no need to test for out of spec conditions.This is awesome, just need to add a check for humanYears === 0, I think.
I like this one. I don't entriely get it but I know what I like.
Arrow functions..nice
hello, I think it's just mathmetical , need that value for correct answer and nothing more
very clean <3
Also still lost with this one...
edit: oh, it's the truthy/falsy values of 0 & 1 that allow the ternary operator to work
ohh nice arrow function as well
Please, use Solutions section instead of Discourse to discuss solutions.
For the warning: you should add a return after the last
else if
branch or simply useelse
.height * 2
isn't ok. But I'm not sure if the problem is you didn't use markdown formatting posting your code here or you didn't use the proper operator.This comment is hidden because it contains spoiler information about the solution
yes, BMI calculating with 'weight / (height * 2)'
Loading more items...