Skip to content

Commit

Permalink
Merge branch 'master' of github.com:panzerdp/dmitripavlutin.com
Browse files Browse the repository at this point in the history
  • Loading branch information
panzerdp committed Nov 24, 2023
2 parents 18a23d3 + f9abf03 commit 71a51db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions posts/058-classes-guide/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ class User {
}
}

const user = new User('John');
const user = new User('John Snow');

user.getName(); // => 'John Snow'
user instanceof User; // => true
Expand All @@ -699,7 +699,7 @@ User.prototype.getName = function() {
return this.name;
}

const user = new User('John');
const user = new User('John Snow');

user.getName(); // => 'John Snow'
user instanceof User; // => true
Expand Down Expand Up @@ -730,4 +730,4 @@ To take advantage of encapsulation, make the fields and methods private to hide

The classes in JavaScript become more and more convenient to use.

*What do you think about using `#` to prefix private properties?*
*What do you think about using `#` to prefix private properties?*

0 comments on commit 71a51db

Please sign in to comment.