Is there a way to create timers in JavaScript that can trigger certain events in the code and be used as conditions elsewhere without relying on libraries? I need these timers to control the timing of events within the program, such as triggering actions after a specific number of seconds. How can this be achieved in native JavaScript?