Skip to main content

Exercise 7

  • Create the following folder/file structure:
/ex_7
|-- index.js
|-- greeter.js
  • Init an NPM project inside the ex_7 folder
  • Use ex_7 as project name
  • Add a start script to run the index.js file

greeter.js

  • Copy and paste the code from previous exercise
  • Export the greet function

index.js

  • Require the greeter module
  • Call the greet function and pass the following parameter:
    • Your first name
    • Your last name
    • A function that shows the following message: We're using node modules yeah!!!