Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

Timing events

JavaScript gives us the opportunity to execute a part of code under given timing circumstances. 

For example execute code periodically every a specific amount of time. Or wait for 2 minutes and execute code after.

The syntax is clear, we specify which part of code (it is a function always) we want to execute, under which time condition.

You can create timers, timer calculators, make things appear after a period of time and many many more.

Attention: Both timing events (setInterval and setTimeout) run *asynchronously.

*We will find out later what does this mean.

Timing Events

Kostas Diakogiannis
Module by Kostas Diakogiannis, updated more than 1 year ago
No tags specified