Logger Function - ES6 Modules
In this lab, you will practice ES6 module import and export. You will create an
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.
exportfor named exports.
export defaultfollowed by the variable name for default exports.
- Call the
index.jswith the proper text mentioned in challenges.