Hi Karson,
when ‘adding’ to strings, Javascript code will concatenate them, so ‘10’ + ‘20’ will become ‘1020’
what you want to do is concatenate to integers 10 + 20 => 30
please have a look here: (btw, this is plain old javascript, not wix related
)
export function submitCalc_click(event, $w){
var a = parseInt($w("#input1").value);
var b = parseInt($w("#input2").value);
var n = a + b;
console.log(n);
}
good luck,
Shlomi