Search⌘ K
AI Features

Exercise: A Simple Event

Explore how to emit events in Node.js asynchronously using EventEmitter. Learn to trigger an event when a search starts and handle it properly to pass data like file lists, enhancing your understanding of event-driven programming.

Problem statement

Modify the asynchronous FindRegex class so that it emits an event when the find process starts, passing the input files list as an argument.

Beware of Zalgo! ...