minor
This commit is contained in:
parent
e50b6cc744
commit
50094f72ee
2 changed files with 2 additions and 2 deletions
|
@ -341,7 +341,7 @@ return*!*;*/!*
|
||||||
|
|
||||||
So, it effectively becomes an empty return.
|
So, it effectively becomes an empty return.
|
||||||
|
|
||||||
If we want our expression to wrap across multiple lines, we can put the opening parentheses in the same line as the `return` statement as follows:
|
If we want the returned expression to wrap across multiple lines, we should start it at the same line as `return`. Or at least put the opening parentheses there as follows:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
The `"prototype"` property is widely used by the core of JavaScript itself. All built-in constructor functions use it.
|
The `"prototype"` property is widely used by the core of JavaScript itself. All built-in constructor functions use it.
|
||||||
|
|
||||||
We'll see how it is for plain objects first, and then for more complex ones.
|
We'll see how it works first, and then how to use it for adding new capabilities to built-in objects.
|
||||||
|
|
||||||
## Object.prototype
|
## Object.prototype
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue