JavaScript input | Sololearn: Learn to code for FREE!


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


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


What about from sololearn?


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