Answers for "how to get user input in javascript"

4

how to ask input in javascript

let name=prompt("What is your name?");
console.log("Hi "+name)
Posted by: Guest on August-09-2020
7

js get input from user

var name = prompt("Please enter your name", "Harry Potter");
Posted by: Guest on December-01-2020
4

how to get a user input in js

Copyvar name = window.prompt("Enter your name: ");
alert("Your name is " + name);
Posted by: Guest on April-29-2020
5

js prompt

var answer = prompt('What is your name?','Joe Blogg');
Posted by: Guest on March-31-2020
0

how to get user input in javascript

var name = window.prompt("What is your name");
document.write("Hello " + name);
Posted by: Guest on September-28-2021
0

user input in js

let r = readLine();
const PI = Math.PI;

// Print the area of the circle:
console.log(PI*r*r);
// Print the perimeter of the circle:
console.log(PI*2*r);
Posted by: Guest on September-09-2021

Code answers related to "how to get user input in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language