i get run time error Unexpected Identifier
when i used this code.
setInterval(this.flashlight.switchOn(), 2000);
I want to switch on the my mobile every 2mile seconds.
how can i do this.
is there any way to achieve my goal?
i get run time error Unexpected Identifier
when i used this code.
setInterval(this.flashlight.switchOn(), 2000);
I want to switch on the my mobile every 2mile seconds.
how can i do this.
is there any way to achieve my goal?