I'm looking for a way I can get multiple JavaScript Variables (for my code, 4 inputs) from one HTML input (in this case, a text input) so that when anyone hits submit multiple times, it will put each click into a different variable.
<form name="mathGuesser" id="mathGuesser" class="mathGuesser">
<h3>y - 5 = 2(x - 4)</h3>
<input type="text" name="mGuesser" placeholder="Enter the answer in slope-intercept form"></input>
<button type="button" onclick="mathCheck()">Check</button>
<script language="javascript">
function mathCheck() {
var inputValues1 = document.mathGuesser.mGuesser.value;
}
</script>
</form>