How do I get the answer of one prompt into another piece of code?
Please specify this question
Assign the prompt answer into a variable? I'm not really understanding your question, what do you mean get it into another piece of code?
What I think you mean is getting a answer from prompt and sending that answer somewhere else in your code, in that case put the answer in a variable like this var input = prompt("..."); Then you can choose how to send that result e.g. a function argument or something like that
Z & K I did not understand your question.