It’s been a while since I wrote an article again, so much stuff happen to me back then. It’s doesn’t matter now, I’m back, and ready to write some more!

I’m gonna tell you about NodeJS again, for now, we focus on the NodeJS code and we basically gonna implement ES Modules to our code. For what? Here’s the thing, if you come from the Frontend side and you join to the Backend side, you mostly dealing with ES module in there, if you come from ReactJSAngularJS, or VueJS. You always code using ES Module. But, when you got to the Backend side using NodeJS, you cannot use that kind of code such as importexport default, and export.

In this article, I’m gonna explain to you, how to implement the ES Module in NodeJS version 14. In the previous version of NodeJS below 14, you must set up something or installing a third-party package to use this ES Module and that’s kind of a waste of time, I think.

#api #javascript #expressjs #backend #nodejs

 Using ES Modules Instead of CommonJS
2.20 GEEK