Merge pull request #1715 from baooab/patch-4

fix typo
This commit is contained in:
Ilya Kantor 2020-01-28 19:15:26 +01:00 committed by GitHub
commit bd6052f591
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -264,7 +264,7 @@ class User {
let user = new User("John"); let user = new User("John");
alert(user.name); // John alert(user.name); // John
user = new User(""); // Name too short. user = new User(""); // Name is too short.
``` ```
The class declaration creates getters and setters in `User.prototype`, like this: The class declaration creates getters and setters in `User.prototype`, like this: