
005 JSJ Javascript Objects
JavaScript Jabber
00:00
Is That a Common Convention?
A, using the underscore as like a indication that something is kind of private. I've been told tat def or atlea, seen that alot. A, i know j s lynt complains about it, really, it o like you to have under scores,. But if you want to take that risk, seems good. All right. So then i guess that the i variable is then stored in the closure for each of those functions exactly, so every one of them would get its own i. And now you have a private eye, right? The prototype way of doing it would be that you would say the thing that prototype constructed, o, prototype equals brackets i, zero;
Play episode from 29:32
Transcript


