how to repeat prompt with the same variable in javascript code example
Example 1: how to repeat prompt with the same variable in javascript
var promtptAll = prompt('type any from rock, paper, scissors', '');
Example 2: how to repeat prompt with the same variable in javascript
let sign = prompt("What's your sign?");
if (sign.toLowerCase() == "scorpio") {
alert("Wow! I'm a Scorpio too!");
}
sign = window.prompt();
sign = prompt();
sign = window.prompt('Are you feeling lucky');
sign = window.prompt('Are you feeling lucky', 'sure');