Ad
  • Custom User Avatar

    Thanks Chrono, that made the console.log work and showed me why it's failing.
    Apparently it's failing on an empty string, which I thought since it wasn't testing for null, it wouldn't matter.
    I just learned something! An empty string '' !== null

  • Custom User Avatar

    My code passes the sample tests, it's when I "attempt" that I get the error.

    Apologies for not putting my code up front, but it's up there now (under a spoiler tag). It's the one out of however many dozens or hundreds of test that is failing upon "Attempt". And it always fails after a string with exactly five spaces in it (the next test, which I didn't copy/paste has more than five spaces, and it passes), and it since the console.log does not run, I'm assuming the test is flawed somehow.

  • Custom User Avatar

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

  • Custom User Avatar

    Here's a you look at how every other test prints, to give a better view of the anamoly..

    Log
    Mazinkaiser
    Test Passed: Value == true
    Log
    hello world_
    Test Passed: Value == false
    Log
    PassW0rd
    Test Passed: Value == true
    Log

    Test Passed: Value == false
    Expected: false, instead got: true

    See? It's saying, "Test passed", then immediately "Expected false"... My code shouldn't be able to pass and then fail?
    Again, the blank log is five whitespaces. Any other number of whitespaces passes the test.

  • Custom User Avatar

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

  • Custom User Avatar

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