When I click on “off” switch I am clearing the setTimeout function and also returning “return ;”
However, this is not clearing settimeout and the game keeps continuing.
Any help is appreciated. Thanks
When I click on “off” switch I am clearing the setTimeout function and also returning “return ;”
However, this is not clearing settimeout and the game keeps continuing.
Any help is appreciated. Thanks