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

Skip to content

Commit 9b5187e

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fundamentals/oop_classes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ When a function is called and preceded by the `new` keyword, something special h
7575
7676
We can now add properties to the new object through the `this` variable, as shown below.
7777

78+
When the constructor function finishes, it returns the newly constructed object as its return value.
79+
7880
```js
7981
function Month(name, days) {
8082
this.name = name;

0 commit comments

Comments
 (0)