setTimeout() | keyinfo

PHOTO EMBED

Fri Apr 19 2024 11:03:27 GMT+0000 (Coordinated Universal Time)

Saved by @gitjck #javascript

function myy () {
	alert("ohh run");
    }
setTimeout(myy, 3000);
content_copyCOPY

here you do not have to call function with brackets 'myy()', setTimeout automatically call the function