What are the benefits of using new over closures
I’ve been programming in JS for over a year now, mainly in angularJS. And I can honestly say I’ve never made a function use prototypical inheritance. When ever i need a class like object that has private data, I use the factory pattern and closures to create classes. I can honestly say I’ve never needed to use the this key word.
Describe closures to a non programmer [closed]
Closed 9 years ago.
Describe closures to a non programmer [closed]
Closed 9 years ago.
Describe closures to a non programmer [closed]
Closed 9 years ago.
Describe closures to a non programmer [closed]
Closed 9 years ago.
Describe closures to a non programmer [closed]
Closed 9 years ago.