I've been trying to make a calculator in JavaScript.
My issue is I don't know how to find the sum of 2 arrays (the first number (33) is saved to an array called num1 ) (the second number (99) is saved to an array called num2 ) example(33+99 = ?)
I wrote the below statement but the total returns in a concatenated format ex(1,3,5,3) which is not my intended solution
     const calculate = (n1,n2) => {
     let result =""
     if (n1.length > 0 ){
        result =  n1 + n2
     }
        return result
     }
     v.push(calculate(num1, num2)) 
     document.getElementById("answer").innerHTML = v
 
     
     
    