Beginner friendly [JavaScript/Python] solution
\njavascript []\nvar addToArrayForm = function(num, k) {\n    let res = [], i=num.length\n    while(i-- > 0 || k){\n        if(i >= 0)  k += num[i];\n        re
\n```javascript []\nvar addToArrayForm = function(num, k) {\n    let res = [], i=num.length\n    while(i-- > 0 || k){\n        if(i >= 0)  k += num[i];\n        res.unshift(k%10)\n        k = Math.floor(k/10)\n    }\n    return res\n};\n```\n\n``` python []\nclass Solution(object):\n    def addToArrayForm(self, num, k):\n        res = [] \n        i=len(num)-1\n        while i >= 0 or k:\n            if i >= 0:\n                k += num[i]\n            res.insert(0, k%10)\n            k = k/10\n            i -= 1\n        return res\n```
['Python', 'JavaScript']