Then when someone wants to use myModule, they can require it in their file, like so:
JavaScript Modules: A Beginner’s Guide
Preethi Kasireddy

hello() and googbye() are not static methods of myModule. They can only be invoked on the instance (new myModule()).hello() and (new myModule()).goodbye().

There is a typo in the gist example in googbye.
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.