+ 1

Function with Boolean true/false doesnt work

Hey i have a problem with my code.. The function "myFunction2" will not work. i will make the Button on click changing with false and true but it doesnt work.. can anyone help me? thank you and sry for my english.. https://code.sololearn.com/WSE72mvVU07g/?ref=app

1st Oct 2018, 10:16 AM
Stefan Es
Stefan Es - avatar
3 Respostas
+ 2
this is a translation of what Микола Федосєєв trying to say: https://code.sololearn.com/WE01VZsERWY0/#js
1st Oct 2018, 11:47 AM
MO ELomari
MO ELomari - avatar
+ 2
Create a global (outside functions) variable, say, var btnState and use it to store the button state.
1st Oct 2018, 10:40 AM
Микола Федосєєв
Микола Федосєєв - avatar
+ 2
thank you i want to give you two the "best answer". thank you both
1st Oct 2018, 11:53 AM
Stefan Es
Stefan Es - avatar