How do you use an HTML form to get input from the user and store it in a variable?

Conner

New member
Trying to write a simple calculator program. How do you store user input as a variable which can be used in JavaScript calculations? I know how to make a form in HTML and do calculations in JavaScript but I'm having trouble combining the two. I'm pretty new at this so any help would be greatly appreciated.
 
Back
Top