From 276dd384ae50f8cb94c8b8121836b6caa2207aa5 Mon Sep 17 00:00:00 2001 From: GyuMin Han <60285506+rbals0445@users.noreply.github.com> Date: Fri, 16 Jul 2021 17:32:49 +0900 Subject: Update index.html (destructuring) (#1536) index.html line 67~70 (Kor version) original example
var foo = ["one", "two", "three"]; var [one, two three] = foo; this example is not intuitive, it looks same. but in English example, there are some differences in example. for other newbies like me, fix this plz!! --- .../reference/operators/destructuring_assignment/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'files/ko/web/javascript/reference') 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); // 2var 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"선언에서 분리한 할당
-- cgit v1.2.3-54-g00ecf