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 đŸ™đŸ€—

1st May 2021, 3:58 PM
Hillary Chikendu
Hillary Chikendu - avatar
3 RĂ©ponses
+ 6
Use prompt() like this: value = prompt("give input: "); alert("you entered: "+value);
1st May 2021, 4:02 PM
Hape
Hape - avatar
0
What about from sololearn?
1st May 2021, 4:30 PM
Hillary Chikendu
Hillary Chikendu - avatar
0
It works everywhere let value = prompt("Your input: " alert("Your input is: " + value) Happy Coding
1st May 2021, 4:50 PM
ŐŐžÖ†Ő«