Update: 15-function-expressions-arrows/article.md
This code snippet should be shown with the semicolon: // Function Expression let sum = function(a, b) { return a + b; }
This commit is contained in:
parent
7ef8f49f9a
commit
6e8f1177d7
1 changed files with 1 additions and 1 deletions
|
@ -195,7 +195,7 @@ First, the syntax: how to see what is what in the code.
|
|||
// Function Expression
|
||||
let sum = function(a, b) {
|
||||
return a + b;
|
||||
}
|
||||
};
|
||||
```
|
||||
|
||||
The more subtle difference is *when* a function is created by JavaScript engine.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue