Skip to content

Commit e502905

Browse files
committed
correction
1 parent 2372aae commit e502905

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JavaScript Outlines/ObjOriProg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ What is an object?
165165
What is a factory object?
166166
///////////////////////////
167167
• 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
168+
• We use factory functions because if we are duplicating an object with one or more methods (has a "behavior"), it
169169
can be problematic if there become more duplicate of the same object.
170170
• To avoid that issue, we use a function to create an object and return the object.
171171
• 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

Comments
 (0)