How to addition two input txt

I have a similiar question. My code is below. If it is terrible, I apologize. I am very new to this. I also tried parseFloat for what it is worth. I don’t actually know their distinctive use cases, but it did not help me. Console shoots out the two inputs, but not doing the math. Input 1 = 10 and Input 2 = 20 it outputs 1020, not 30. I appreciate the help!

export function submitCalc_click(event, $w){
var a = String(parseInt($w(“#input1”).value));
var b = String(parseInt($w(“#input2”).value));

var n = a + b; 

	console.log(n); 
	
	}