diff options
-rw-r--r-- | files/ko/web/javascript/reference/operators/destructuring_assignment/index.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/files/ko/web/javascript/reference/operators/destructuring_assignment/index.html b/files/ko/web/javascript/reference/operators/destructuring_assignment/index.html index d078e94c38..aae1bd3e00 100644 --- a/files/ko/web/javascript/reference/operators/destructuring_assignment/index.html +++ b/files/ko/web/javascript/reference/operators/destructuring_assignment/index.html @@ -64,10 +64,10 @@ console.log(z); // 2 <pre class="brush: js">var foo = ["one", "two", "three"]; -var [one, two, three] = foo; -console.log(one); // "one" -console.log(two); // "two" -console.log(three); // "three" +var [red, yellow, green] = foo; +console.log(red); // "one" +console.log(yellow); // "two" +console.log(green); // "three" </pre> <h3 id="선언에서_분리한_할당">선언에서 분리한 할당</h3> |