Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,6 +74,13 @@ | |
// [2, 6] | ||
``` | ||
|
||
相当于: | ||
|
||
```js | ||
[1 * 2, 2 * 3] | ||
``` | ||
|
||
|
||
## 给函数一个名字 | ||
|
||
我们可以把函数放在一个变量里面,看起来会舒服一点, 而且也方便重复利用: | ||
|