0 points

Scheduling: setTimeout and setInterval


dashboard

Fri Nov 13 2020 21:42:30 GMT+0000 (UTC)

Posted by @mvieira #javascript

function sayHi(phrase, who) {
  alert( phrase + ', ' + who );
}

setTimeout(sayHi, 1000, "Hello", "John"); // Hello, John
content_copy Copy

https://javascript.info/settimeout-setinterval