Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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 /
 
PREVIOUS NEXT
Tagged: #settimeout
ADD COMMENT
Topic
Name
2+3 =