Ad
  • Custom User Avatar

    At least the last 4 tests are inversed.
    My solution returns false when length > 1 and it works, but the tests say they expect true.You need to change the text of tests.
    String.prototype.digit = function() {
    if(this.length > 1){
    return false
    }

    return (parseInt(this) < 10 && parseInt(this) >= 0)

    }