Learn JavaScript setTimeout() in 6 minutes! ⏰

Описание к видео Learn JavaScript setTimeout() in 6 minutes! ⏰

00:00:00 introduction
00:00:30 setTimeout w/ callback
00:01:04 setTimeout w/ anonymous functions
00:01:25 setTimeout w/ arrow funcitons
00:01:43 clearTimeout()
00:02:32 start button
00:03:51 clear button
00:05:49 conclusion

// setTimeout() = function in JavaScript that allows you to schedule
// the execution of a function after an amount of time
// Times are approximate
// setTimeout(callback, delay);

function hello() {
window.alert("Hello");
}

setTimeout(hello, 3000);

Комментарии

Информация по комментариям в разработке