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 ++++---- .../javascript/reference/global_objects/array/flatmap/index.html | 2 +- .../javascript/reference/global_objects/object/valueof/index.html | 2 +- .../ko/web/javascript/reference/global_objects/promise/index.html | 2 +- .../ko/web/javascript/reference/global_objects/regexp/index.html | 2 +- files/ko/web/javascript/reference/lexical_grammar/index.html | 2 +- .../javascript/reference/operators/object_initializer/index.html | 4 ++-- .../javascript/reference/operators/operator_precedence/index.html | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) (limited to 'files/ko/web/javascript/reference') 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

diff --git a/files/ko/web/javascript/reference/global_objects/array/flatmap/index.html b/files/ko/web/javascript/reference/global_objects/array/flatmap/index.html index 9d762001e8..ceaa87f4b2 100644 --- a/files/ko/web/javascript/reference/global_objects/array/flatmap/index.html +++ b/files/ko/web/javascript/reference/global_objects/array/flatmap/index.html @@ -82,7 +82,7 @@ arr1.flatMap(x => x.split(" ")flatMap() 을 이용한 아이템 추가 및 제거 -

flatMapmap을 하는 과정에서 아이템을 추가하거나 제거하여 아이템 개수를 바꿀 수 있습니다. 다른 말로는 각각의 아이템에 대하여 1:1대응관계 뿐만 아니라 다대다 대응도 가능하다는 것입니다. 이러한 측면에서 filter가 하는 역할의 반대역할을 한다고 볼 수 있습니다. 단순히 아무런 변화를 주고 싶지 않을때에는 원소 하나를 가진 배열을 반환할 수도, 아이템을 추가하고 싶을 때는 다-원소 배열을 반환할 수도, 아이템을 제거하고 싶을 때에는 빈 배열을 반환할 수도 있습니다.

+

flatMapmap을 하는 과정에서 아이템을 추가하거나 제거하여 아이템 개수를 바꿀 수 있습니다. 다른 말로는 각각의 아이템에 대하여 1:1대응관계 뿐만 아니라 다대다 대응도 가능하다는 것입니다. 이러한 측면에서 filter가 하는 역할의 반대역할을 한다고 볼 수 있습니다. 단순히 아무런 변화를 주고 싶지 않을때에는 원소 하나를 가진 배열을 반환할 수도, 아이템을 추가하고 싶을 때는 다-원소 배열을 반환할 수도, 아이템을 제거하고 싶을 때에는 빈 배열을 반환할 수도 있습니다.

// 다음은 음수는 제거하고 홀수는 1과 짝수로 분리하는 예시입니다.
 let a = [5, 4, -3, 20, 17, -33, -4, 18]
diff --git a/files/ko/web/javascript/reference/global_objects/object/valueof/index.html b/files/ko/web/javascript/reference/global_objects/object/valueof/index.html
index 7bef3bd48c..863ba06a1e 100644
--- a/files/ko/web/javascript/reference/global_objects/object/valueof/index.html
+++ b/files/ko/web/javascript/reference/global_objects/object/valueof/index.html
@@ -26,7 +26,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Object/valueOf
 

객체의 원시 값.

-

 (단항) 더하기 기호 는 가끔  valueOf 의 단축 표현으로 사용됩니다. 예를 들면, 다음과 같은 표현을 보세요. +new Number()단항 더하기 사용하기.도 참조 하세요.

+

 (단항) 더하기 기호 는 가끔  valueOf 의 단축 표현으로 사용됩니다. 예를 들면, 다음과 같은 표현을 보세요. +new Number()단항 더하기 사용하기.도 참조 하세요.

설명

diff --git a/files/ko/web/javascript/reference/global_objects/promise/index.html b/files/ko/web/javascript/reference/global_objects/promise/index.html index d3dbf076c5..a06ff3cc40 100644 --- a/files/ko/web/javascript/reference/global_objects/promise/index.html +++ b/files/ko/web/javascript/reference/global_objects/promise/index.html @@ -13,7 +13,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Promise

Promise 객체는 비동기 작업이 맞이할 미래의 완료 또는 실패와 그 결과 값을 나타냅니다.

-

Promise의 작동 방식과 Promise 사용 방법에 대해 알아보려면 먼저 Promise 사용 방법을 읽어 보십시오.

+

Promise의 작동 방식과 Promise 사용 방법에 대해 알아보려면 먼저 Promise 사용 방법을 읽어 보십시오.

설명

diff --git a/files/ko/web/javascript/reference/global_objects/regexp/index.html b/files/ko/web/javascript/reference/global_objects/regexp/index.html index 541d3585db..5675812788 100644 --- a/files/ko/web/javascript/reference/global_objects/regexp/index.html +++ b/files/ko/web/javascript/reference/global_objects/regexp/index.html @@ -51,7 +51,7 @@ let re = new RegExp('\\w+')

Perl  형태의 RegExp 속성

-

일부 {{JSxRef("RegExp")}} 속성은 같은 값에 대해 긴 이름과 짧은 (Perl 형태의) 이름 모두 가지고 있습니다. (Perl은 JavaScript가 정규 표현식을 만들 때 참고한 프로그래밍 언어입니다.)  사용하지 않는 RegExp 속성을 참고하세요.

+

일부 {{JSxRef("RegExp")}} 속성은 같은 값에 대해 긴 이름과 짧은 (Perl 형태의) 이름 모두 가지고 있습니다. (Perl은 JavaScript가 정규 표현식을 만들 때 참고한 프로그래밍 언어입니다.)  사용하지 않는 RegExp 속성을 참고하세요.

생성자

diff --git a/files/ko/web/javascript/reference/lexical_grammar/index.html b/files/ko/web/javascript/reference/lexical_grammar/index.html index 74e4e63788..1f2349bc1a 100644 --- a/files/ko/web/javascript/reference/lexical_grammar/index.html +++ b/files/ko/web/javascript/reference/lexical_grammar/index.html @@ -428,7 +428,7 @@ var m = 0o644; // 420
0o755n
-

For more information about BigInt, see also JavaScript data structures.

+

For more information about BigInt, see also JavaScript data structures.

Numeric separators

diff --git a/files/ko/web/javascript/reference/operators/object_initializer/index.html b/files/ko/web/javascript/reference/operators/object_initializer/index.html index 21669048a6..6040804e5f 100644 --- a/files/ko/web/javascript/reference/operators/object_initializer/index.html +++ b/files/ko/web/javascript/reference/operators/object_initializer/index.html @@ -215,7 +215,7 @@ console.log(config); // { size: 12, mobileSize: 4 }

전개 속성

-

ECMASCript의 나머지/전개 속성 제안 (stage 4) 으로 전개(spread) 속성이 객체 리터럴에 추가됩니다. 이 속성은 제공된 객체의 열거 가능한(enumerable) 속성을 새 객체로 복사합니다.

+

ECMASCript의 나머지/전개 속성 제안 (stage 4) 으로 전개(spread) 속성이 객체 리터럴에 추가됩니다. 이 속성은 제공된 객체의 열거 가능한(enumerable) 속성을 새 객체로 복사합니다.

(prototype을 제외하는) 얕은 복제(Shallow-cloning) 나 객체 합침(merging objects)이 이제{{jsxref("Object.assign()")}} 보다 짧은 문법으로 가능해집니다.

@@ -229,7 +229,7 @@ let mergedObj = { ...obj1, ...obj2 } // Object { foo: "baz", x: 42, y: 13 }
-

{{jsxref("Object.assign()")}}는 setters를 작동시키지만, 전개 연산자(spread operator)는 아니라는 걸 주목하세요!

+

{{jsxref("Object.assign()")}}는 setters를 작동시키지만, 전개 연산자(spread operator)는 아니라는 걸 주목하세요!

프로토타입 변이

diff --git a/files/ko/web/javascript/reference/operators/operator_precedence/index.html b/files/ko/web/javascript/reference/operators/operator_precedence/index.html index d67711452b..0d37a262c5 100644 --- a/files/ko/web/javascript/reference/operators/operator_precedence/index.html +++ b/files/ko/web/javascript/reference/operators/operator_precedence/index.html @@ -379,7 +379,7 @@ console.log((echo("첫째", 2) ** echo("둘째", 3)) ** echo("셋째", 2)); 7 - 널 병합 연산자 + 널 병합 연산자 좌결합성 … ?? … -- cgit v1.2.3-54-g00ecf