Amend grammar for default parameters

This commit is contained in:
Josh Perez
2015-04-27 16:58:09 -07:00
committed by Josh Perez
parent d0028724ea
commit cb47b478c7

View File

@@ -551,9 +551,9 @@
}
```
- Don't put side effect into default parameter
- Avoid side effects with default parameters
> it introduces confusion and subtlety. Arguments in function call are evaluated at call site, but default parameters are not evaluated at define site.
> Why? They are confusing to reason about.
```javascript
var b = 1;