SetTimeout function is used when you want to execute the code after specific number of milliseconds,
Syntax: -
setTimeout(function() {
$(".thememessage").html('Code Executed after three second');
}, 3000);
in this peace of code we will execute the code after 3 second, the time it takes as input in milliseconds.
1 second = 1000 milliseconds
0 Comment(s)