
005 JSJ Javascript Objects
JavaScript Jabber
00:00
Objects and Object Creation
There's basically three paradimes, ok? There's new, there's literals, and then there's having a function that's called ne fu, or create. The advantages and disadvantages i see are that when you use just the prototype a, you don't have as much privacy over the data. Ah, if you do the create method, you get data privacy because you can declare varn a,. Your object is your closure, right? And so whatever you return is what's public, but whatever you don't return just stays private in the closure. So jaquery for sure uses the prototype system. When you call the jacey montating pila, it's basically like the
Play episode from 19:05
Transcript


