FREELessons: 13Length: 1.7 hours

Next lesson playing in 5 seconds

  • Overview
  • Transcript

2.2 The Randomiser Module

Let's create a module for producing random numbers. You'll learn how to export your code via module.exports, and how other users can then require our module. We’ll then review how you can test your modules by using npm link to install them.