How does Javascript inputs work? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How does Javascript inputs work?

How can i make an input value in javascript?

27th May 2017, 7:11 PM
TrueJu
TrueJu - avatar
4 Answers
+ 1
You can do it by adding form and inout fields in html or using prompt() function: Edit: var inputUser = prompt("Enter something:);
27th May 2017, 7:29 PM
Amar
Amar - avatar
+ 3
ok :D
27th May 2017, 7:32 PM
TrueJu
TrueJu - avatar
+ 2
ok thank you! the 2 solution i cant because im at the half of js course, so i cant see this lesson
27th May 2017, 7:31 PM
TrueJu
TrueJu - avatar
+ 1
check my edit for example
27th May 2017, 7:31 PM
Amar
Amar - avatar