I am working on a geometry style like calculator using javascript, and I need user input. But when the user, for example, inputs 55 and the other also 55 the sum of the number will be 5555 when I'd like it to be 110.
Javascript Code:
function ftmad2(){
let angle1 = prompt("Please enter the first angle:");
let angle2 = prompt("Please enter the second angle:");
sumAngle = angle1 + angle2;
console.log(sumAngle);
let result = 180-sumAngle;
document.getElementById("result").innerHTML = result;
}