I am trying to figure out ways to get the products of two integers without using * in my solution. The closest I got was is
/*Example: 2,5 output ====> 10 */
/*Example: 10,5 output ====> 50 */
const productOfTwoInt = (int,int2) => {
var data1 = 0;
var data2 = 0;
var result;
var result2;
for(var x = 0; x <= int; x++) {
result = x += data1
console.log(result)
}
for(var j = 0; j <= int2; j++) {
result2 = j += data2
}
return result + result2
}
console.log(productOfTwoInt(3,5))