Answers for "input from the user in javascript"

8

js get input from user

var name = prompt("Please enter your name", "Harry Potter");
Posted by: Guest on December-01-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

Code answers related to "input from the user in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language