Skip to content

Commit

Permalink
Fix issue 32488: Remove superfluous lines
Browse files Browse the repository at this point in the history
  • Loading branch information
wbamberg committed Feb 29, 2024
1 parent 062fca7 commit aa44a4b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions files/en-us/learn/javascript/objects/basics/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,10 @@ Now we can create as many objects as we like, reusing the definition:

```js
const salva = createPerson("Salva");
salva.name;
salva.introduceSelf();
// "Hi! I'm Salva."

const frankie = createPerson("Frankie");
frankie.name;
frankie.introduceSelf();
// "Hi! I'm Frankie."
```
Expand All @@ -366,12 +364,10 @@ To call `Person()` as a constructor, we use `new`:

```js
const salva = new Person("Salva");
salva.name;
salva.introduceSelf();
// "Hi! I'm Salva."

const frankie = new Person("Frankie");
frankie.name;
frankie.introduceSelf();
// "Hi! I'm Frankie."
```
Expand Down

0 comments on commit aa44a4b

Please sign in to comment.