There used 2 kinds of javascript file *.js is CommonJS (CJS) *.mjs is ES modules (ESM) Refrence: CommonJS vs ES module