I'm still reading my kiddie book on JavaScript 101 and I feel like I want to exercise what I have learned and I got this far and now I really want to turn this into a calculator. How can I turn this into a calculator?

`
<html>
<head><title>Calculator</title></head>
<body>

<form name = "calculator">
<input type = "text" value = "first number" name="1" />
<br/>
<input type = "text" value = "second number" name="2" />
<br/>
<input type = "submit" value = "Submit!" />
</form>

<script type="text/JavaScript">

function Add(a,b,c){
var c = a + b;
return c;

}

function Multi(a,b,c){
var c = a * b;
return c;

}

function Divide(a,b,c){
var c = a / b;
return c;

}
</script>
</body>
</html>
`

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.