Ad
  • Custom User Avatar

    The Log appears above the test result, so the one that your code is failing is not the one you wrote. Read my previous post again to fix that.

  • Custom User Avatar

    Try using console.log("*"+str+"*"); instead to check the last 2 of those 3 cases your code fails. Also check what parseInt() of a string returns and what comparing that value to a number returns (you already have a console.log that shows that).