Require vs Import Javascript
Monsterlessons Academy Monsterlessons Academy
46.3K subscribers
79,340 views
3.4K

 Published On Mar 11, 2021

In this video you will learn on example the different ways of creating modules in Javascript on real examples. The first thing in Javascript was Immediately invoked function expression (IIFE) then we got CommonJS modules which are mostly used in NodeJS and the modern way is ES6 modules. Each module system has it's own pros and cons and we will compare them all to find out which one is the best

🚨IMPORTANT:
→ All my courses: https://monsterlessons-academy.com/co...
→ Twitter:   / monster_lessons  

🕛 TIMESTAMPS:
0:00 Intro
1:44 Self executed functions
3:53 CommonJS modules
11:32 ES6 modules
18:46 Difference between CommonJS and ES6
21:04 CommonJS in NodeJS
21:44 Outro

📚 References:
→ Source code : https://github.com/monsterlessonsacad...

show more

Share/Embed