Vernacular: "API" vs "module"
I'm taking a NodeJS course right now, and it seems the instructor will refer to the "Event Emitter" API"
We'd previously created a custom event emitter with
and as far as I understood, the 'events' we are requiring above here is referred to as a NodeJS module, not an "API".
Does it become an "API" when its instantiated or something (customEmitter)?
Or is NodeJS "module" and "API" two interchangeable words for the same thing?
We'd previously created a custom event emitter with
const eventEmitter = require('events');const customEmitter = new EventEmitter();
and as far as I understood, the 'events' we are requiring above here is referred to as a NodeJS module, not an "API".
Does it become an "API" when its instantiated or something (customEmitter)?
Or is NodeJS "module" and "API" two interchangeable words for the same thing?



