i wanna make like this
function(2231)
'8 = 2 + 2 + 3 + 1'
so i will using substring method can extract step by step, and will using while method
let str = String(num);
let first = 0;
let second = first + 1;
while( 0 <= str.length){
str.substring(first, second)
first ++
}
but.. i wanna save str.substring's result one by one, and '+', return..
how to i get result ? please advice to me..
question from:https://stackoverflow.com/questions/65546238/please-help-me-im-a-beginner-at-javascript