Nodeschool.io – Make it modular

Recently I was playing with the exercises from the fantastic http://nodeschool.io. Below is my solution to “Make it modular” exercise. Of course you can improve it eg. with the use of Regex but I just wanted to keep it simple for the start. 

So the first file with the name myprogram.js:

and the second module.js:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.