commit
fba8458f34
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue