Ad
  • Default User Avatar

    looks like u solved it

  • Custom User Avatar

    I've tried your code and it works for me. Seems like a temporary bug with codewars.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Nevermind, I'm a doofus. Definitely need more practice, haha.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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 or false, but not undefined.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution