We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb2a622 commit 876a7b4Copy full SHA for 876a7b4
docs/function.md
@@ -73,7 +73,7 @@ function foo(x, x, y = 1) {
73
// SyntaxError: Duplicate parameter name not allowed in this context
74
```
75
76
-另外,一个容易忽略的地方是,如果参数默认值是变量,那么参数就不是传值的,而是每次都重新计算默认值表达式的值。
+另外,一个容易忽略的地方是,如果参数默认值是变量,那么参数就不是传值的,而是每次都重新计算默认值表达式的值。也就是说,参数默认值是惰性求值的。
77
78
```javascript
79
let x = 99;
0 commit comments