Start small. There's no need to prototype beforehand. There's no need to pick up a huge framework. No need to find a web host. This is all you need to get going, in an .html file on your computer:
<!DOCTYPE html>
<html>
<head>
<title>Optometry calculator</title>
<script>
function add() {
var first = parseInt(document.getElementById("first").value);
var second = parseInt(document.getElementById("second").value);
document.getElementById("result").innerText = first + second;
}
</script>
</head>
<body>
<p>
First number:
<input type="text" id="first">
</p>
<p>
Second number:
<input type="text" id="second">
</p>
<p>
<button onclick="add()">Add</button>
</p>
<p id="result">
</p>
</body>
</html>
WalterGR|3 years ago
Start small. There's no need to prototype beforehand. There's no need to pick up a huge framework. No need to find a web host. This is all you need to get going, in an .html file on your computer:
yukistar|3 years ago