diff --git a/docs/basic-concept/expressions/operators/detructing-assignment.md b/docs/basic-concept/expressions/operators/detructing-assignment.md index 914d2c412..98280a84c 100644 --- a/docs/basic-concept/expressions/operators/detructing-assignment.md +++ b/docs/basic-concept/expressions/operators/detructing-assignment.md @@ -567,7 +567,7 @@ let { foo, bar } = example(); ```js // 参数是一组有次序的值 -function f({x, y, z}) { ... } +function f([x, y, z]) { ... } f([1, 2, 3]); // 参数是一组无次序的值 @@ -625,7 +625,7 @@ map.set('first', 'hello'); map.set('second', 'world!'); for (let [key, value] of map) { - console.log(ket + ' is ' + value); + console.log(key + ' is ' + value); } // first is hello // second is world