I'm trying to do something like this:
<html>
<body>
<input id="input" type="text">
<input type="button" onclick="a()" value="submit">
<script>
function a(){
x=document.getElementById("input").value;
b(x)
}
function b(userInput){
var z=userInput
}
</script>
</body>
<html>
I want the name of "z" to change every time the functions runs, so I can get a new variable every time the user enters a new input.