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

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?
Screen_Shot_2023-05-20_at_4.10.03_PM.png
Was this page helpful?