Logger Function - ES6 Modules

60.2% Acceptance

In this lab, you will practice ES6 module import and export. You will create an index.js and logger.js file.

The goal is to use logger.js to create and export a log() function that can be imported and used in index.js. You will also create and export a default variable from logger.js. In the end, you should have an organized and functional module system using ES6 syntax.


  1. Use export for named exports.
  2. Use export default followed by the variable name for default exports.
  3. Call the log() function from index.js with the proper text mentioned in challenges.