DEV Community

Vijay SRJ
Vijay SRJ

Posted on

How to create and use Javascript modules? - a very basic example

Javascript was once used for petty purposes like client side validation.

Now it has exploded and occupied the territory of server side programming as well.

The introduction of ES6 standards played a huge role in this.

Until 2015 you couldn't reuse code from another javascript file by importing them.

ES6 introduced modules and then things changed.
Here is a very basic example of how to create and use javascript modules:

https://fullstackdeveloper.guru/2021/04/12/how-to-create-javascript-modules-a-basic-example/

Top comments (0)