0
How can I make this code more dynamic ?
2 Answers
+ 1
var name = window.prompt("What is your name");
var gender = window.prompt("What is your gender");
var time = window.prompt("How many days do you want to stay?");
var total;
var tax;
var dis;
Like that, change text to something you want, like "what is your gender. (Male/Female)" if needed, do that also to variable total, tax and dis
0
window.prompt("What is your name");
window.prompt("What is your gender");
window.prompt("How long");
Change your variable value to that, you should know what I mean