Which keyword is used to export multiple things from a module in JavaScript?

  • import
  • export
  • require
  • module
In JavaScript, the export keyword is used to export multiple things from a module. It allows you to specify which functions, objects, or variables should be accessible from outside the module. The import keyword is used for importing from modules, not exporting. The require and module keywords are used in CommonJS, a different module system.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *