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.
This comment is hidden because it contains spoiler information about the solution
I'm hanging my head in such utter shame right now. Thanks for the help.
You're searching for "African countries that end with the character E" instead.
This comment is hidden because it contains spoiler information about the solution
Remember that the number scale is 0-10, while the moon scale is 0-5. This means a value of 1.5 equals 0.75 moons. Which should round up to 1 and produce a single "o", which gives a final string of "oxxxx".
This was a lot of fun
Ah, ok, thanks.
Your code only counts types of braces and it's not accounting for the right position.
Javascript - Last 5 tests fail, but the rest, including the random tests, pass?
Probably you're using
match
that can returnnull
if there is no match. But it's just a guess without seeing your code.That's what I would like to know! I can share my code - which is just an if statement counting the occurences of each character. Like I said, my code works everywhere but here.
you're trying to get a length from a
null
object, however0 <= input.length <= 100
so where is thisnull
object coming from?In javascript I keep getting "TypeError: Cannot read property 'length' of null" for a single test. I do use the string length property. I have tried handling a null string every way I can find. My code works in codepen and repl so I don't know why it generates this error here. Any suggestions?