function writeSum() {
var addendOne = document.getElementById("addendOne").value;
var addendTwo = document.getElementById("addendTwo").value;
document.getElementById("sum").innerHTML = addendOne + addendTwo;
}
<input type="number" id="addendOne"> + <input type="number" id="addendTwo"><br>
<button onclick="writeSum()">Answer</button>
<p id="sum"></p>
If I write 4 in the first input and 5 in the second input, I get 45. How do I change this to addition instead of concatenation.