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 u solved it
I've tried your code and it works for me. Seems like a temporary bug with codewars.
This comment is hidden because it contains spoiler information about the solution
Nevermind, I'm a doofus. Definitely need more practice, haha.
This comment is hidden because it contains spoiler information about the solution
Hey, schau dir bei Gelegenheit mal GFM zur Formatierung deiner Kommentare an/have a look at GFM to format your comments (especially the section about code).
That being said, your function doesn't return anything if the number isn't a square. While this is fine during the example test cases, the hidden test cases also check the type of your returned value, and they expect either
true
orfalse
, but notundefined
.This comment is hidden because it contains spoiler information about the solution