Ad
  • Custom User Avatar

    Fixed

  • Custom User Avatar

    Ok, I just needed to change my 'Perfect!' for true return to true.

  • Custom User Avatar

    Use === instead of == to validate the tests.

  • Custom User Avatar

    Task
    Write function which validate string input. If string is a perfect square return true, false otherwise.

    Your function should return true or false, because the author has used == instead of === when you return a non empty string it's evaluated to true.

  • Custom User Avatar

    I'm really confused about what the output is supposed to be. I think I am getting true/false right, but I'm not passing some of the random drawings. What does "But I'm perfect and square" error mean, when I have a true output? When others pass that are true, I return 'Perfect' and they are fine. Another message I don't understand is "Hey, no one is perfect."