minor fixes

This commit is contained in:
Ilya Kantor 2019-11-30 08:44:57 +03:00
parent ce8e68f21c
commit 40e941e4e4
4 changed files with 3 additions and 7 deletions

View file

@ -94,11 +94,7 @@ alert(user.name); // Alice
alert(user.surname); // Cooper alert(user.surname); // Cooper
``` ```
As the result, we have a "virtual" property `fullName`. It is readable and writable, but in fact does not exist. As the result, we have a "virtual" property `fullName`. It is readable and writable.
```smart header="No way to handle `delete`"
There's no similar method to handle deletion of an accessor property. Only getter/setter methods may exist.
```
## Accessor descriptors ## Accessor descriptors

View file

@ -26,7 +26,7 @@ For instance, here all exports are valid:
``` ```
````smart header="No semicolons after export class/function" ````smart header="No semicolons after export class/function"
Please note that `export` before a class or a function does not make it a [function expression](info:function-expressions-arrows). It's still a function declaration, albeit exported. Please note that `export` before a class or a function does not make it a [function expression](info:function-expressions). It's still a function declaration, albeit exported.
Most JavaScript style guides don't recommend semicolons after function and class declarations. Most JavaScript style guides don't recommend semicolons after function and class declarations.

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before After
Before After

Binary file not shown.