0

How to create an input?

I dont know how to create an input in javascript. like when u have to make something that needs an external input. can someone please help?

16th Oct 2020, 2:53 PM
Niels Verhaeghe
Niels Verhaeghe - avatar
4 ответов
+ 4
Refer prompt in this link:) in tag it's not java it's JavaScript!! https://www.sololearn.com/learn/JavaScript/1149/?ref=app
16th Oct 2020, 2:55 PM
chaithra Gowda
chaithra Gowda - avatar
+ 2
https://youtu.be/1d90JmryqD4
16th Oct 2020, 3:07 PM
Gordon
Gordon - avatar
+ 2
You can use the function: For example: var input=window.prompt("Here you can enter your input") ; It's very simple, and then to display the input, u can use this: alert(input) ; I hope I helped you 😄 Happy coding 🙂
16th Oct 2020, 3:07 PM
Matthew
Matthew - avatar
0
i want to try the hovercraft from code coach. I already have most of the code but I don’t know the input thing.
16th Oct 2020, 3:01 PM
Niels Verhaeghe
Niels Verhaeghe - avatar