BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
BEGIN:VEVENT
URL:https://www.learndesk.us/class/5630802022891520/lesson/fb775b8eebe5bd2e0cda2a753c02609a?ref=outlook-calendar
SUMMARY:What is SetTimeout?
DTSTART;TZID=America/Los_Angeles:20260509T190000
DTEND;TZID=America/Los_Angeles:20260509T200000
LOCATION:https://www.learndesk.us/class/5630802022891520/lesson/fb775b8eebe5bd2e0cda2a753c02609a?ref=outlook-calendar
DESCRIPTION: 

The method takes a function and a duration of time (in milliseconds)
When you invoke setTimeout, nothing happens at first
Code below the setTimeout in the same block will execute
After the specified duration of time, the timeout will complete
Timeout has access to variables in the scope where it was created
Code that executes before the setTimeout function does not have access to any variables it sets

Good usage:

Do exactly one thing at a set point in the future
Check to see if something has happened, and, either way, begin executing code again right away
Delay code execution by the shortest possible time (1 millisecond)

Bad usage:

Do multiple things at multiple points in the future

Better: setIntervalCheck to see if something has happened, call setTimeout again if it has notBetter: generator functions


https://www.learndesk.us/class/5630802022891520/lesson/fb775b8eebe5bd2e0cda2a753c02609a?ref=outlook-calendar
STATUS:CONFIRMED
SEQUENCE:3
BEGIN:VALARM
TRIGGER:-PT10M
DESCRIPTION:Class Reminder
ACTION:DISPLAY
END:VALARM
END:VEVENT
END:VCALENDAR