How to... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answers
+ 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