Ad
  • Custom User Avatar

    No, it doesn't. Read the error messages:

    Expected: '[4, 3, 2, 6]', instead got: '[\'4\', \'3\', \'2\', \'6\']' // array of numbers vs array of strings
    Expected: 'null', instead got: '[\'2\']'                              // wrong result
    
  • Default User Avatar

    My solution passes on replit js but doesn't on here :( I'm wondering why that is:

    function upArray(arr){
    return (parseInt(arr.join(""))+1).toString().split("")
    }