needing help with homework - calculator using javascript
i need to grab the text from the <input> and use that number in the equation.
<script>
function runMe(){
var x == document.getElementById('input1').value;
document.write(x);
}
</script>
<body>
<form>
Enter number <input type="text" id="input1" value="">
<input type="submit" onClick="runMe">
</form>
</body>