Code:When I enter value of x as 1 and of y as 2, sum i get is 12. why is JS misinterpreting it as strings?Code:function calc() { var calc = document.getElementById("main"); var x = calc.num1.value; var y = calc.num2.value; var sum = x + y; document.getElementById("result").innerHTML = sum ; }