[Solved] How to split int each two digits and insert into an array
const num = 112233445566; const numString = num.toString(); let numberArr = []; let tempArr = []; for (let i = 0; i < numString.length; i++) { tempArr.push(numString[i]); if (tempArr.length == 2) { numberArr.push(tempArr); tempArr = []; } } const numbers = numberArr.map(number => { return parseInt(number.join(“”)); }); solved How to split int each two digits … Read more