Let me mark that down. I have time

Blog.csdn.net/gongch0604/…

www.jianshu.com/p/256d0873c…

Js prototype chain mp.weixin.qq.com/s/h1PP_7VUj…

Addition of large Numbers

function add(a,b){ let str1 = a.split(""); let str2 = b.split(""); let flag = 0 ; // let res = ''; while(str1.length || str2.length || flag){ flag = flag + ~~str2.pop() + ~~str1.pop(); []. Pop ==undefined res = flag%10 +res; flag = flag > 9 } return res.replace(/^0+/, ''); }Copy the code