Classes in Node.js can be "Event Emitters" which means we can listen and respond to certain events, just like we can in browser programming. For example, the http class provides a connection event that we can attach listeners to. In this example we'll attach an event listener for the connection event. Then we'll attach an event listener to the finish event of the response.
One-On-One Questions or Comments?
Something not making sense, want to share your thoughts or just say hello? I check this daily!