seantrant
9/29/2017 - 9:39 AM

delay x miliseconds

delay x miliseconds

setTimeout(function() { your_func(); }, 5000);

To avoid scoping problemos use arrow functions

setTimeout( () => { }