Should i learn common js for client side js | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Should i learn common js for client side js

Im learninf modules and there are two main ones ive come across ,ES modules and common js .nut common js is not native to js .you cab using with frameworks .so should i learn common js or jist stivk to Es6 modules strictly for client side and save common js for node.js

9th Apr 2020, 4:11 AM
Kiro Cosmos
Kiro Cosmos - avatar
3 Answers
+ 1
CommonJS was not designed for front-end browsers, would not run well in the browser environment.
9th Apr 2020, 5:08 AM
Calviղ
Calviղ - avatar
+ 4
Oky , i guess i should save common js for node
10th Apr 2020, 4:15 AM
Kiro Cosmos
Kiro Cosmos - avatar
+ 4
Thanks ✌️
10th Apr 2020, 4:15 AM
Kiro Cosmos
Kiro Cosmos - avatar