Merge pull request #1439 from paroche/patch-61

Update article.md
This commit is contained in:
Ilya Kantor 2019-10-10 10:51:35 +03:00 committed by GitHub
commit fba8458f34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ Our function `readUser(json)` will not only read JSON, but check ("validate") th
Our `ValidationError` class should inherit from the built-in `Error` class. Our `ValidationError` class should inherit from the built-in `Error` class.
That class is built-in, here's it approximate code, for us to understand what we're extending: That class is built-in, but here's its approximate code so we can understand what we're extending:
```js ```js
// The "pseudocode" for the built-in Error class defined by JavaScript itself // The "pseudocode" for the built-in Error class defined by JavaScript itself