Answers for "user input in js"

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
4

prompt js

var answer = prompt("How are you? ");
Posted by: Guest on November-30-2020
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
0

user input in js

var username = prompt("What is your name?");
Posted by: Guest on September-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language