LINKDING
Login
Shared bookmarks
Sort by
Added ↑
Added ↓
Title ↑
Title ↓
Apply
Tags
Dan Wahlin - The Prototype Pattern - Techniques, Strategies and Patterns for Structuring JavaScript Code
#javascript
#pattern
#prototype
#tutorial
|
The Prototype Pattern can be broken out into two main sections including a constructor section and a prototype section. Prototyping allows functions and properties to be associated with objects. However, instead of each object instance getting a copy of all functions/properties each time an object is created, only one set of functions/properties exists across all objects resulting in less memory consumption. In other words, functions and properties are defined once per prototype rather than once per object.
9 years ago
|
View
Shared by
ttscoff
Previous
1
Next
User
Everyone
ttscoff
Apply
Tags
-javascript
-tutorial
-pattern
p
rototype