function = () => {
var info1 = parseInt(document.getElementById("info1").value);
var info2 = parseInt(document.getElementById("info2").value);
var res = Number(info1.value + info2.value);
var info3 = document.getElementById("info3");
info3 = Number(res);
}
Now I am getting the answer in alert but not in the info3. I am getting NaN as output in the third. I know its Not a Number thing but how to convert in so that I get output in my column.
function = () = {}is not a valid definition, btw. You need to either declare it asconst a = () => {}orfunction a(){ }orconst a = function(){}