Ad
  • Default User Avatar

    Thanks, I misunderstood the directions.

  • Default User Avatar

    javascript
    The test cases are still mixed on whether or not the function is supposed to preserve leading zeros:
    Test Results:
    Log
    foobar000
    Test Passed: Value == 'foobar001'
    Log
    foo
    Test Passed: Value == 'foo1'
    Log
    foobar001
    Test Passed: Value == 'foobar002'
    Log
    foobar99
    Test Passed: Value == 'foobar100'
    Log
    foobar099
    Expected: 'foobar100', instead got: 'foobar0100'
    Test Passed: Value == '1'

  • Default User Avatar

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