JavaScript WAIT - basic examples

Example 2

WAIT in FOR lopp - modern async/await solution (ES2015+)

  1. Show variable with value 10
  2. In FOR loop wait 5 sec - 3x
  3. Add +10 to variable
  4. Display results in loop
  5. Modern async/await solution (ES2015+)
Counting: 0 seconds