setTimeout() function

Hey people, can somebody tell me how to set up Timeout function?? i found few topics but it quite didnt help. I’d be much grateful <3

@smokys i had made a post a weeks ago


When i use this code
Screenshot_22
it doesnt work cause it says
Screenshot_21

Fixed

My explained “version” :


// you need function not just () alone
setTimeout(function(){  // < ----- you can also do set interval which runs that code in that time period that you picked.
  // action goes here
},1000);
// this comma separates the function from the seconds ( in miliseconds)
1 Like