3 ms·
Yes, it's very popular with JS to make code more modular. Remember that, although JavaScript is a object-oriented language, it isn't a class-based language - it
by mrsaint 12y ago
Yes, it's very popular with JS to make code more modular. Remember that, although JavaScript is a object-oriented language, it isn't a class-based language - it's a prototype-based language.
The best way to grasp the idea is by following various code examples (and how and why they were implemented that way). Also, I found Douglas Crockford's video presentations on JS _extremely_ helpful. I have a list of them here:
https://www.zeitgeist.se/2014/03/26/list-of-helpful-javascript-resources/ https://www.zeitgeist.se/2014/03/26/list-of-helpful-javascri...