minor fixes
This commit is contained in:
parent
ce8e68f21c
commit
40e941e4e4
4 changed files with 3 additions and 7 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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 |
BIN
figures.sketch
BIN
figures.sketch
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue