Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript timeout

// wait 1000ms and then run func()
let myTimeout = setTimeout(func, 1000);
// cancel the timeout
clearTimeout(myTimeout);
Source by learn.coderslang.com #
 
PREVIOUS NEXT
Tagged: #javascript #timeout
ADD COMMENT
Topic
Name
8+5 =