Professional Documents
Culture Documents
querySelector("button");
const input1 = document.getElementById("num1");
const input2 = document.getElementById("num2");
}
}
//when you type the value of an element in JS is always a string no matter which
type of input it is
*/
button.addEventListener("click", function () {
console.log(add(input1.value, input2.value));
});