make variable needed js code example
Example: javascript variable
var user_name = prompt("Please enter your name:", "Type here");
alert("Hello " + user_name);
var user_name = prompt("Please enter your name:", "Type here");
alert("Hello " + user_name);