0

Why does the Bool value not changing for the parent function?

https://code.sololearn.com/WbQuaAPaF2rf/#js

12th Aug 2020, 12:35 PM
zexu knub
zexu knub - avatar
3 Antworten
+ 4
Whenever you click on button state is assigned false again
12th Aug 2020, 12:39 PM
Abhay
Abhay - avatar
+ 3
It is changing.. You are outputting it before setting it to true. And as Abhay said, if you click it again.. It is set to false again.. https://code.sololearn.com/WF9BISf866Xs/?ref=app
12th Aug 2020, 12:41 PM
Arnesh
Arnesh - avatar
0
Yeah didn't consider that... thanks
12th Aug 2020, 12:44 PM
zexu knub
zexu knub - avatar