EPISODE · Jan 29, 2013 · 4 MIN
Create a Timer in JavaScript
from Treehouse Quick Tips · host Jim Hoskins
Sometimes you need to wait a certain amount of time in your program before taking an action. You may also want to repeat an action after a certain length of time. You can do this using a timeOut and an interval. In this example tutorial, the element is replaced using getElementById.
What this episode covers
Sometimes you need to wait a certain amount of time in your program before taking an action. You may also want to repeat an action after a certain length of time. You can do this using a timeOut and an interval. In this example tutorial, the element is replaced using getElementById.
NOW PLAYING
Create a Timer in JavaScript
No transcript for this episode yet
Similar Episodes
Apr 21, 2026 ·13m
Apr 19, 2026 ·16m
Apr 17, 2026 ·13m
Apr 13, 2026 ·11m
Apr 11, 2026 ·16m