js prompt
var answer = prompt("How are you? ");var answer = prompt('What is your name?','Joe Blogg');var person = prompt("Please enter your name", "Harry Potter");
if (person != null) {
document.getElementById("demo").innerHTML =
"Hello " + person + "! How are you today?";
}Copyvar name = window.prompt("Enter your name: ");
alert("Your name is " + name);
Also in JavaScript:
- countdown in javascript
- jquery get element width
- emmet react self closing tags
- js greater than or equal to
- string length jquery
- fizzbuzz javascript
- alertify js vue
- error handling in node js
- console.log('qqqqqqqqqqqqqqqqqqqq'); jslint error how to fix
- how to check chrome version in js
- jquery when you typing in input
- javascript round decimal 2 digits
- user agents regex for mobile
- Authentication handling in javascript
- functions in javascript
- ngrok angular 8
- how to declare variables javascript
- electron scrollbar
- javascript function convert bytes into mb
- npm font awesome vue
- get localstorage
- If X + Y means “X is the daughter of Y”, X * Y means “X is the son of Y” and X-Y means “X is the wife of Y”, then in the expression “Z * T - S * U - P”, What is U to Z?
- how to use json stringify in javascript
- how to get whole json object with jsonpath