This program is running multiple times | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
27th Mar 2023, 7:00 AM
Susheela
Susheela - avatar
3 Answers
+ 5
Cool. What is your question?
27th Mar 2023, 7:10 AM
JaScript
JaScript - avatar
+ 3
As Jay Matthews said, Computer always choose same option, you should move this random function inside main function, so when user select his, computer make new selection. Also remove red color on text, after user/computer select new option. You can use class, and then toggle class.
27th Mar 2023, 8:45 AM
PanicS
PanicS - avatar
+ 1
How to i run this program at once a time
27th Mar 2023, 7:11 AM
Susheela
Susheela - avatar