Exporting with ES6 syntax

suggest change

This is the same kind of module as a CommonJS export, written as ESM. Node.js loads export only from an ES module: a .mjs file, or a .js file in a package with "type": "module".

export function printHelloWorld() {
  console.log("Hello World!!!");
}

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents