Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d7d2b83

Browse files
committed
updated OOP fundamental
1 parent 9b5187e commit d7d2b83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fundamentals/oop_classes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ months
6767

6868
### Constructor Functions (pre-ES6) and the `new` keyword
6969

70-
In the example below we use a function that is used in conjunction with the `new` keyword. Such a function is called a **constructor** function, and, by convention, we start its name with an uppercase letter.
70+
In the example below, instead of using object literals, we use a function in conjunction with the `new` keyword to create objects. Such a function is called a **constructor** function, and, by convention, we start its name with an uppercase letter.
7171

7272
When a function is called and preceded by the `new` keyword, something special happens. The JavaScript engine creates a new, empty object and assigns that object to the `this` variable.
7373

0 commit comments

Comments
 (0)