We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2372aae commit e502905Copy full SHA for e502905
JavaScript Outlines/ObjOriProg.js
@@ -165,7 +165,7 @@ What is an object?
165
What is a factory object?
166
///////////////////////////
167
• A factory functions create an individual instance of some model.
168
- • We use factory functions because if we are duplicating an object with one or more methods (has a "bahavior"), it
+ • We use factory functions because if we are duplicating an object with one or more methods (has a "behavior"), it
169
can be problematic if there become more duplicate of the same object.
170
• To avoid that issue, we use a function to create an object and return the object.
171
• Note here that with Es6 if the key and the value are the same, we can remove the noise and simple put a single name.
0 commit comments