Write aJavascript code that prompts the user to enter his name 10 times. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

Write aJavascript code that prompts the user to enter his name 10 times.

14th Jun 2021, 6:33 AM
War baby ♣️
War baby ♣️ - avatar
5 Answers
+ 3
Use a loop for this.
14th Jun 2021, 7:01 AM
TOLUENE
TOLUENE - avatar
+ 1
for(var i = 1; i <= 10; i++){ prompt("Enter your name here..."); }
14th Jun 2021, 8:47 AM
Coder-Rohit[{(∞)}]
Coder-Rohit[{(∞)}] - avatar
- 1
Lemmi try
14th Jun 2021, 7:02 AM
War baby ♣️
War baby ♣️ - avatar
- 3
Can you try?
14th Jun 2021, 6:51 AM
War baby ♣️
War baby ♣️ - avatar
- 4
It challenged me... Just needed a answer dawg
14th Jun 2021, 6:51 AM
War baby ♣️
War baby ♣️ - avatar