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 didn't knew you could do that with a ternary operator, nice.
This comment is hidden because it contains spoiler information about the solution
Doesn't have a place in production code, has to be more readable.
NICE!
Thank you for providing a WHY this is not best practice. Much appreciated.
Its usable for codewars only, IRL lead would beat ur ass for coding like that
( ͡° ͜ʖ ͡°)
Ah yea, of course, thanks.
you must use the spoiler flag when discussing code / solution methods. i added the flag
This comment is hidden because it contains spoiler information about the solution
It does not make any sense to declare
bmi
parameter because function is about its calculation)What is so "clever" about ternary operator and why people lose minds in here when they see it?
sometime being smart does't prove you are good, but yeah to solve this oversmartly you are the best
Please don't do this.
Beautiful
Loading more items...