how to checked an entered value in prompt using js code example
Example: how to ask input in javascript
Copyvar name = window.prompt("Enter your name: ");
alert("Your name is " + name);
Copyvar name = window.prompt("Enter your name: ");
alert("Your name is " + name);