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.
Loading...
Related Quiz
- How does normalizing database tables impact the Read and Update operations in CRUD?
- In Node.js, the process.cwd() method returns the ________.
- In Sequelize, which method is commonly used to find a single instance from the database?
- What would happen if you do not use the express.static middleware function for serving static files?
- ________ is a security practice that involves encoding information so that only authorized parties can access it.