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.
readibility left the chat.
that is, if 2.5 or 6.5 days, does the discount work?
Same here, I either didn't know or forgot that I can use two ternary operators in one line.
This comment is hidden because it contains spoiler information about the solution
Will this really work? :D
:D Bravo!
I am super noob, but ternary looks good only with 2 conditions. I would rather have more rows than a line so long
A very commmon eslint rule is no nested ternary. This would not fly in many teams.
also harder to debug
This is def clever but not best practice. Never do this in real code. This is not readable. Not maintanable. Not extensible.
I totally forgot that you can have two different conditionals in a ternary operator!!
Hi, If you are asking why the popular solution is preferred over yours, it is probably because it is shorter and easier for an experienced developer to verify as correct. Extra intermediate variables that are only used once are often best avoided.
why is this so low :-(?? definitely best way..
I feel dumb but I don't understand this solution...
This is def best practice
Loading more items...