JavaScript easy to understand solution
/**\n * @param {number[]} digits\n * @return {number[]}\n */\nvar plusOne = function(digits) {\n    for(let i = digits.length - 1; i>= 0; i--){\n        if(digi
```/**\n * @param {number[]} digits\n * @return {number[]}\n */\nvar plusOne = function(digits) {\n    for(let i = digits.length - 1; i>= 0; i--){\n        if(digits[i] < 9){\n            digits[i]++\n            return digits\n        }\n        \n        digits[i] = 0\n    }\n    digits.unshift(1)\n    return digits\n};```
['JavaScript']