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:
jorgesmash 2017-07-19 12:25:40 -04:00 committed by GitHub
parent 7ef8f49f9a
commit 6e8f1177d7

View file

@ -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.