Answers for "how to get 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
56

Javascript get text input value

var inputValue = document.getElementById("myTextInputID").value;
Posted by: Guest on July-26-2019
1

input in js

var answer = prompt("Question")
Posted by: Guest on December-13-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 "how to get input in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language