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.
What do you use to test the speed of a piece of code/application?
that's it everyone, we can go home. the perfect solution has been performed.
This comment is hidden because it contains spoiler information about the solution
What's a positive zero? Does that imply the existence of a negative zero?
To further clarify for those still confused on why passing in
switch(value)
doesn't work, it's because it's comparing a Boolean to a numerical one, which will always befalse
. Say our average is 95 and we're assigning that to a variableavg
. If we try to pass inavg
as the argument to the switch statement's parameter, this is essentially what is happening:(avg >= 90)
is returning a Boolean. We'll never reach a switch statement that evaluates to true if we're passing in ouravg
variable as the argument. I hope this helps!incredible