How to... | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grátis
+ 3

How to...

I want to make a break of 4 sek in my code. How to do this? Hope for answers Stoffel ;)

20th Apr 2017, 9:29 PM
StoffelJs
2 Respostas
+ 12
var myVar = setInterval(function(){ yourFunc() }, 4000); function yourFunc() { // Code executed after 4 seconds }
20th Apr 2017, 9:35 PM
Maz
Maz - avatar
+ 5
If you are satisfied with the answer, Mark it as the best answer
20th Apr 2017, 9:38 PM
Alireza M
Alireza M - avatar