Does anybody know how to repeat alerts? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

Does anybody know how to repeat alerts?

Tell if u know https://code.sololearn.com/W3C5sEXrOx5w/?ref=app

27th Mar 2022, 5:26 PM
💫𝘙𝘢𝘺𝘺𝘢𝘯💫
3 Answers
+ 4
Use loop E.g let repeat = 3; while (repeat > 0){ alert("you are destined for greatness"); repeat--; } this will execute the alert function three times rayyan please use relevant tags for your questions next time
27th Mar 2022, 5:34 PM
Emms
Emms - avatar
0
Ty
27th Mar 2022, 5:34 PM
💫𝘙𝘢𝘺𝘺𝘢𝘯💫
0
Also about the youareanidiot.org tag, its just a virus that im trying to recreate but it is harmless. Thats all have a good day
27th Mar 2022, 5:44 PM
💫𝘙𝘢𝘺𝘺𝘢𝘯💫