... | ... | @@ -85,15 +85,15 @@ There should be no space between the name of a function and the `(` (left parent |
|
|
|
|
|
```javascript
|
|
|
|
|
|
function outer(c, d) {
|
|
|
var e = c * d;
|
|
|
function outer(c, d) {
|
|
|
var e = c * d;
|
|
|
|
|
|
function inner(a, b) {
|
|
|
return (e * a) + b;
|
|
|
}
|
|
|
function inner(a, b) {
|
|
|
return (e * a) + b;
|
|
|
}
|
|
|
|
|
|
return inner(0, 1);
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
This convention works well with JavaScript because in JavaScript, functions and object literals can be placed anywhere that an expression is allowed. It provides the best readability with inline functions and complex structures.
|
... | ... | |