Skip to content

Commit

Permalink
revert old changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashish-CodeJourney committed Jun 24, 2024
1 parent 25fd664 commit 81035fd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion files/en-us/learn/javascript/objects/basics/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@ const person2 = {
};
```


In this case, `person1.introduceSelf()` outputs "Hi! I'm Chris."; `person2.introduceSelf()` on the other hand outputs "Hi! I'm Deepti.", even though the method's code is exactly the same in each case. This isn't hugely useful when you are writing out object literals by hand, but it will be essential when we start using **constructors** to create more than one object from a single object definition, and that's the subject of the next section.

## Introducing constructors
Expand Down

0 comments on commit 81035fd

Please sign in to comment.