From 619211e9ba8a68c9d5de346dfc73fa0686c9148d Mon Sep 17 00:00:00 2001 From: Yeji Choi <61399588+yechoi42@users.noreply.github.com> Date: Sun, 18 Jul 2021 22:58:53 +0900 Subject: fix: delete wiki.mozilla.org from ko files (#1567) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: delete wiki.mozilla.org from ko/learn files * fix: delete wiki.mozilla.org from ko/glossary files * fix: remove wiki * fix: remove python script file 잘못올렸습니다.. ㅠ * Update files/ko/web/html/attributes/index.html Co-authored-by: hochan222 --- .../web/javascript/reference/functions/arrow_functions/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'files/ko/web/javascript/reference/functions/arrow_functions') diff --git a/files/ko/web/javascript/reference/functions/arrow_functions/index.html b/files/ko/web/javascript/reference/functions/arrow_functions/index.html index 13c99b28ba..a8eaa55b06 100644 --- a/files/ko/web/javascript/reference/functions/arrow_functions/index.html +++ b/files/ko/web/javascript/reference/functions/arrow_functions/index.html @@ -65,7 +65,7 @@ f(); // 6 ]; // 이 문장은 배열을 반환함: [8, 6, 7, 9] -elements.map(function(element) { +elements.map(function(element) { return element.length; }); @@ -75,7 +75,7 @@ elements.map((element) => { }); // [8, 6, 7, 9] // 파라미터가 하나만 있을 때는 주변 괄호를 생략할 수 있다. -elements.map(element => { +elements.map(element => { return element.length; }); // [8, 6, 7, 9] @@ -87,12 +87,12 @@ elements.map(element => element.length); // [8, 6, 7, 9] // 'length'는 우리가 얻고자 하는 속성에 해당하는 반면, // lengthFooBArX'는 변경 가능한 변수의 이름일 뿐이므로 // 원하는 유효한 변수명으로 변경할 수 있다. -elements.map(({ length: lengthFooBArX }) => lengthFooBArX); // [8, 6, 7, 9] +elements.map(({ length: lengthFooBArX }) => lengthFooBArX); // [8, 6, 7, 9] // destructuring 파라미터 할당도 아래와 같이 작성할 수 있습니다. // 이 예에서 정의한 객체내의 'length'에 값을 지정하지 않은 점에 주목하세요. 대신, "length" 변수의 // 리터럴 이름은 우리가 해당 객체에서 꺼내오고 싶은 속성이름 자체로 사용됩니다. -elements.map(({ length }) => length); // [8, 6, 7, 9] +elements.map(({ length }) => length); // [8, 6, 7, 9]

바인딩 되지 않은 this

-- cgit v1.2.3-54-g00ecf