Smallest Common Multiple, please help me to understand this code

Yeah looking at it again it dosn’t make much sense, where did you get this solution? I was looking at the solution here and it does it in a different way, the condition after if(mltple % i !== 0){ should add elements to an array, not add each other, I’ll try to test this later.