"The largest room in the world is the room for improvement." - Unknown
While I can't say where that quote originated, I can say as a Full Stack Web Developer I am constantly reminded of this ever expansive room for improvement. There are always new technologies to learn, a JavaScript method to discover, or even development tools to take advantage of. In this infinite room, how does one quench that endless thirst for knowledge? We drink until we're full — so let's crack open a cold one and dive into some Web Development concepts.
Chatting about web trends or if your a junior dev looking for tutoring/paired programming I'd be happy to connect!
Thank you! And yes it is very similar to using an event listener especially if you are creating a custom event listener. As for the unsubscribe, one implementation would be to update our subscribe method to return an unsubscribe function that essentially finds the index of the callback function and removes it from our bus[event] array. Since we are using array.push when adding our function we could utilize that to get our index since it returns the index of what was added!