Answers for "how to repeat prompt with the same variable in javascript"

1

how to repeat prompt with the same variable in javascript

var promtptAll = prompt('type any from rock, paper, scissors', '');
Posted by: Guest on June-01-2021
0

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!");
}

// there are many ways to use the prompt feature
sign = window.prompt(); // open the blank prompt window
sign = prompt();       //  open the blank prompt window
sign = window.prompt('Are you feeling lucky'); // open the window with Text "Are you feeling lucky"
sign = window.prompt('Are you feeling lucky', 'sure'); // open the window with Text "Are you feeling lucky" and default value "sure"
Posted by: Guest on June-01-2021

Code answers related to "how to repeat prompt with the same variable in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language