# Simple Module Here’s an example of a simple module set up.
// simple.js
console.log('Hello, simple!');
// app1.js
require('./simple.js');
- Create the two files above and then run
node app1.jsin the terminal. What do you see? - Update
simple.jswith some of your own code.