Number Task 1

by fredericklim

HTML

<!DOCTYPE html>
<html>
<body>
<p id="output"></p>

<script>
"use strict";

var num1 = +prompt("Input number 1: ");
var num2 = +prompt("Input number 2: ");

document.querySelector("#output").innerHTML = num1 + num2;

</script>

</body>
</html>