Update article.md
Added semicolon
This commit is contained in:
parent
a829155758
commit
c574391332
1 changed files with 2 additions and 2 deletions
|
@ -5,10 +5,10 @@ There's another very simple and concise syntax for creating functions, that's of
|
||||||
It's called "arrow functions", because it looks like this:
|
It's called "arrow functions", because it looks like this:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
let func = (arg1, arg2, ..., argN) => expression
|
let func = (arg1, arg2, ..., argN) => expression;
|
||||||
```
|
```
|
||||||
|
|
||||||
...This creates a function `func` that accepts arguments `arg1..argN`, then evaluates the `expression` on the right side with their use and returns its result.
|
This creates a function `func` that accepts arguments `arg1..argN`, then evaluates the `expression` on the right side with their use and returns its result.
|
||||||
|
|
||||||
In other words, it's the shorter version of:
|
In other words, it's the shorter version of:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue