Js addition does not take effect

I wrote a very simple addition function myself, but I couldn"t figure out the correct result.
https://codepen.io/niusz/pen/.

Mar.23,2021

borrow flowers to present Buddha, modify @ Feng Hengzhi's answer, because the operation is from the later, first + second will be converted into string concatenation if it is not calculated first, so the priority needs to be raised.

document.getElementById("add-btn").onclick = function() {
    var first = Number(document.getElementById("first-number").value);
    var second = Number(document.getElementById("second-number").value);
    document.getElementById("result").innerHTML = `${first + second}`;
};
Menu