aboutsummaryrefslogtreecommitdiff
path: root/files/ko
diff options
context:
space:
mode:
authorGyuMin Han <60285506+rbals0445@users.noreply.github.com>2021-07-16 17:32:49 +0900
committerGitHub <noreply@github.com>2021-07-16 17:32:49 +0900
commit276dd384ae50f8cb94c8b8121836b6caa2207aa5 (patch)
tree605c158a3ab50abbc878631762d5aa3526548eb9 /files/ko
parent7c6676fde79a6303ce6b9cece1a8745d5cd7bdc7 (diff)
downloadtranslated-content-276dd384ae50f8cb94c8b8121836b6caa2207aa5.tar.gz
translated-content-276dd384ae50f8cb94c8b8121836b6caa2207aa5.tar.bz2
translated-content-276dd384ae50f8cb94c8b8121836b6caa2207aa5.zip
Update index.html (destructuring) (#1536)
index.html line 67~70 (Kor version) original example <pre class="brush: js">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!!
Diffstat (limited to 'files/ko')
-rw-r--r--files/ko/web/javascript/reference/operators/destructuring_assignment/index.html8
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>