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.
'looks like you've solved it'
D'oh! Of course, thank you!
You're not changing
p
norp0
values, so, you have an infinite loop there.This comment is hidden because it contains spoiler information about the solution
That solved it thank you!
if (13 > n > 0)
works in a different way from what you expect. It's the same as(13 > n) > 0
orif (13 > n) {return true > 0} else {return false > 0}
.Your algorithm is wrong then. Even from the screenshot I can see that you do throw an error, but not in all cases when it's needed.
This comment is hidden because it contains spoiler information about the solution
Try simply
throw RangeError
.This comment is hidden because it contains spoiler information about the solution
=
assigns,==
or===
compares.This comment is hidden because it contains spoiler information about the solution
This is not how you do comparison, and it will always return
true
.Loading more items...