To gather the variables I use the following code:
<script> var name = window.prompt("Enter your name: "); var age = window.prompt("How old are you: "); var location = window.prompt("Where are you from: "); </script>
Now the problem I’m running across is that I’ve tried different functions I found through google but none of them display it back in the format that I want. I want it to say something along the lines of:
You are (name), a (age) year old from (location).