JavaScript input | Sololearn: Learn to code for FREE!

0

JavaScript input

Good good guys. Please what's the code for receiving and in input from a user in JavaScript? Thanks in advance for the answers ๐Ÿ™๐Ÿค—

5/1/2021 3:58:45 PM

Hillary Chikendu

3 Answers

New Answer

+6

Use prompt() like this: value = prompt("give input: "); alert("you entered: "+value);

0

What about from sololearn?

0

It works everywhere let value = prompt("Your input: " alert("Your input is: " + value) Happy Coding