Logger Function - ES6 Modules
Easy
24
4
60.0% 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.
Hints:
- Use
export
for named exports. - Use
export default
followed by the variable name for default exports. - Call the
log()
function fromindex.js
with the proper text mentioned in challenges.