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'
You moved the digits around, not only deleted the
0
. If you delete the0
you get84743
that's less than the expected87043
.Well if you looked at the top, you'd see that you can only use JS
Is this kata language-dependent, please? I mean can I code eg. in .py or .java or c or any other language? Or should I use some peculiar language?
LOLLLL, my apology!!
Anyway, I was laughing with myself figuring out my blurred eyes. hahahh
PS. That meme was superb. XD
No problem, the avatar here looks small enough to confuse you :P
Hi! As
the chicken guyChrono79 informed, your code can't contain any of all characters listed above.And, no, you can't just directly use
return
command since it containse
,n
, andr
.Try finding another way to solve it.
Happy New Year, 2018 !!
Cheers, =]
PS. Sorry, I was mistaken Chrono79's profile pic as a chicken lol. :\
It seems so.
You should not use any of these characters even in your function name.
I think it is harder than a typical 5 kyu problem.
Your function can't contain any of those.
Read the descriptions carefully, especially at the bottom ;-)
Consider adding some console.log diagnostic commands to inspect variable vales. It should lead you to the right path.
And, your
if(...){....
missing a}
"abc" and "abc"
"Abc" and "aBc"
Here you assign true to every bonus.
I'd assume you wanted to check if bonus is equal to true, you should've used (bonus == true || false).
But since bonus is a Boolean type (true or false), I don't see a point.
Same mistake: first you assign true to the bonus and then you're checking if bonus is true (it will never be false).
You should've used:
or even better
Loading more items...