Ad
  • Default User Avatar

    Are the tests not the same for all?

    The test you claim you're getting does not and can not exist. A js number does not hold any information about leading zeros, it is of your own invention.

  • Custom User Avatar

    There are no octal numbers in play here, and the problem you have is not the problem you think you have. Leading zeros and octal numbers are not the same thing, and in this kata you should return an answer without leading zeros, but it has nothing to do with octal representation of a value. Simply not.

    You'd have to read a bit on differences between representation of a number and its actual value.

    Example with zeros would be good to have in the description though, that's for sure.