What is the use of prompt, provide its syntax and how many parameters it take? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the use of prompt, provide its syntax and how many parameters it take?

29th Dec 2016, 6:26 AM
Vipul Aggarwal
Vipul Aggarwal - avatar
1 Answer
0
var user = prompt("Please enter your name"); alert(user); // Open a box asking you to imput information.
29th Dec 2016, 7:54 AM
alvaro mesa
alvaro mesa - avatar