WKS_JP2020 0 Posted November 5, 2020 Report Share Posted November 5, 2020 ola estou fazendo um projeto e não sei programar em java script,consigo fazer ligar e desligar,mas quero que ele desligue automaticamente após 10 segundos. if(device && status){ var newStatus; if(status =="on") newStatus="on"; else newStatus="off"; Quote Link to post Share on other sites
0 lowys 0 Posted November 5, 2020 Report Share Posted November 5, 2020 https://www.w3schools.com/js/js_timing.asp Quote Link to post Share on other sites
Question
WKS_JP2020 0
ola estou fazendo um projeto e não sei programar em java script,consigo fazer ligar e desligar,mas quero que ele desligue automaticamente após 10 segundos.
if(device && status){
var newStatus;
if(status =="on")
newStatus="on";
else
newStatus="off";
Link to post
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.