Homepage
Sign in / Sign up
Go to the profile of Rett Pop
Rett Pop
Aug 25, 2016
Then when someone wants to use myModule, they can require it in their file, like so:
JavaScript Modules: A Beginner’s Guide
Preethi Kasireddy
1.6K79

There is no ‘require’ JS function. So,

var myModule = require(‘myModule’);

does not work.

  • Go to the profile of Rett Pop

    Rett Pop

    • Share
    Go to the profile of Rett Pop
    Never miss a story from Rett Pop, when you sign up for Medium. Learn more
    Never miss a story from Rett Pop