settimeout function in javascript es6 code example
Example: settimeout es6
// set
var timerid = setTimeout(() => {
console.log('hi :D ');
}, 1000);
// clear
clearTimeout(timerid);
// Syntax
// set
myVar = setTimeout("javascript function", milliseconds);
// clear
clearTimeout(id_of_settimeout);
/ Rnadco.ir /