Why is the boolean operator not working here? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why is the boolean operator not working here?

I can't use the function "turnback( );" with help of (i == 1) {...} https://code.sololearn.com/WaHGl5IV7U8T/?ref=app

20th Jul 2020, 7:34 AM
Pavel Durov
Pavel Durov - avatar
1 Answer
0
when you click the button the function gets executed and the execution does not continue to check for i == 1 again.
20th Jul 2020, 8:18 AM
Bahhaⵣ
Bahhaⵣ - avatar