Skip to content

Commit

Permalink
ko: Make sure localized links are used rather than /en-US/* (part 4) (#…
Browse files Browse the repository at this point in the history
…14259)

* ko: Make sure localized links are used rather than /en-US/* (part 4)

* remove untranslated file with check yari validate-redirects

---------

Co-authored-by: hochan Lee <[email protected]>
  • Loading branch information
queengooborg and hochan222 committed Jul 30, 2023
1 parent 32452a7 commit e7dead4
Show file tree
Hide file tree
Showing 45 changed files with 153 additions and 153 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ slug: Web/JavaScript/Reference/Operators/async_function

**`async function`** 키워드는 표현식 내에서 `async` 함수를 정의하기 위해 사용됩니다.

또한 [async function statement](/en-US/docs/Web/JavaScript/Reference/Statements/async_function)을 사용하여 async 함수를 정의할 수 있습니다.
또한 [async function statement](/ko/docs/Web/JavaScript/Reference/Statements/async_function)을 사용하여 async 함수를 정의할 수 있습니다.

## 문법

Expand Down Expand Up @@ -36,7 +36,7 @@ slug: Web/JavaScript/Reference/Operators/async_function
}
```

[arrow functions](/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions)를 사용해도 됩니다.
[arrow functions](/ko/docs/Web/JavaScript/Reference/Functions/Arrow_functions)를 사용해도 됩니다.

```js
async param => expression
Expand All @@ -57,7 +57,7 @@ slug: Web/JavaScript/Reference/Operators/async_function

## 설명

`async function` 표현식은 {{jsxref('Statements/async_function', '<code>async function</code> 선언')}} 문법과 유사하며, 거의 동일합니다. `async function` 표현식과 `async function` 선언문의 주요 차이점은 익명함수로써의 사용 여부로, `async function` 표현식은 함수 이름을 생략하면 익명함수를 만듭니다. `async function` 표현식은 {{Glossary("IIFE")}}(즉시실행함수)로 사용할 수 있습니다. [`functions`](/en-US/docs/Web/JavaScript/Reference/Functions)문서를 참고하세요.
`async function` 표현식은 {{jsxref('Statements/async_function', '<code>async function</code> 선언')}} 문법과 유사하며, 거의 동일합니다. `async function` 표현식과 `async function` 선언문의 주요 차이점은 익명함수로써의 사용 여부로, `async function` 표현식은 함수 이름을 생략하면 익명함수를 만듭니다. `async function` 표현식은 {{Glossary("IIFE")}}(즉시실행함수)로 사용할 수 있습니다. [`functions`](/ko/docs/Web/JavaScript/Reference/Functions)문서를 참고하세요.

## 예제

Expand Down
2 changes: 1 addition & 1 deletion files/ko/web/javascript/reference/operators/await/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ slug: Web/JavaScript/Reference/Operators/await

만약 `Promise``reject`되면, `await` 문은 `reject`된 값을 `throw`합니다.

`await` 연산자 다음에 나오는 문의 값이 `Promise`가 아니면 해당 값을 [resolved Promise](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/resolve)로 변환시킵니다.
`await` 연산자 다음에 나오는 문의 값이 `Promise`가 아니면 해당 값을 [resolved Promise](/ko/docs/Web/JavaScript/Reference/Global_Objects/Promise/resolve)로 변환시킵니다.

An `await` can split execution flow, allowing the caller of the `await`'s function to resume execution before the deferred continuation of the `await`'s function. After the `await` defers the continuation of its function, if this is the first `await` executed by the function, immediate execution also continues by returning to the function's caller a pending `Promise` for the completion of the `await`'s function and resuming execution of that caller.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ slug: Web/JavaScript/Reference/Operators/delete

## 설명

일반적으로 생각하고 있는것과는 다르게 `delete` 는 메모리 해제에 관하여 직접적으로 어떠한 작업도 하지 않습니다. 메모리 관리는 breaking references를 통하여 간접적으로 일어납니다. 자세한 걸 알고 싶다면 [memory management](/en-US/docs/Web/JavaScript/Memory_Management) 를 보세요.
일반적으로 생각하고 있는것과는 다르게 `delete` 는 메모리 해제에 관하여 직접적으로 어떠한 작업도 하지 않습니다. 메모리 관리는 breaking references를 통하여 간접적으로 일어납니다. 자세한 걸 알고 싶다면 [memory management](/ko/docs/Web/JavaScript/Memory_Management) 를 보세요.

**`delete`**연산자는 오브젝트로 부터 해당 프로퍼티를 삭제합니다. 삭제를 하면 true를 반환, 아니면 false를 반환합니다. 그렇지만 아래 경우를 고려해야만 합니다.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ var metadata = {
title: "JavaScript-Umgebung"
}
],
url: "/en-US/docs/Tools/Scratchpad"
url: "/ko/docs/Tools/Scratchpad"
};

var { title: englishTitle, translations: [{ title: localeTitle }] } = metadata;
Expand Down Expand Up @@ -365,7 +365,7 @@ console.log(foo); // "bar"

### 객체 구조 분해에서 Rest

[Rest/Spread Properties for ECMAScript](https://github.com/tc39/proposal-object-rest-spread) 제안(stage 3)에서는 구조 분해에 [rest](/en-US/docs/Web/JavaScript/Reference/Functions/rest_parameters) 구문을 추가하고 있습니다. rest 속성은 구조 분해 패턴으로 걸러지지 않은 열거형 속성의 키를 가진 나머지 항목들을 모읍니다.
[Rest/Spread Properties for ECMAScript](https://github.com/tc39/proposal-object-rest-spread) 제안(stage 3)에서는 구조 분해에 [rest](/ko/docs/Web/JavaScript/Reference/Functions/rest_parameters) 구문을 추가하고 있습니다. rest 속성은 구조 분해 패턴으로 걸러지지 않은 열거형 속성의 키를 가진 나머지 항목들을 모읍니다.

```js
let {a, b, ...rest} = {a: 10, b: 20, c: 30, d: 40}
Expand Down
6 changes: 3 additions & 3 deletions files/ko/web/javascript/reference/operators/equality/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,6 @@ c == d; // true

## See also

- [Inequality operator](/en-US/docs/Web/JavaScript/Reference/Operators/Inequality)
- [Strict equality operator](/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality)
- [Strict inequality operator](/en-US/docs/Web/JavaScript/Reference/Operators/Strict_inequality)
- [Inequality operator](/ko/docs/Web/JavaScript/Reference/Operators/Inequality)
- [Strict equality operator](/ko/docs/Web/JavaScript/Reference/Operators/Strict_equality)
- [Strict inequality operator](/ko/docs/Web/JavaScript/Reference/Operators/Strict_inequality)
6 changes: 3 additions & 3 deletions files/ko/web/javascript/reference/operators/function/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ slug: Web/JavaScript/Reference/Operators/function

## 설명

함수 표현식(function expression)은 function 문과 매우 비슷하고 구문(syntax)이 거의 같습니다 (자세한 사항은 [function 문](/ko/docs/Web/JavaScript/Reference/Statements/function) 참조). 함수 표현식과 function 문 사이의 주요 차이점은 함수 이름으로, 함수 표현식으로 _익명_ 함수를 만들 경우 이 이름을 생략할 수 있습니다. 함수 표현식은 정의하자마자 실행되는 [IIFE (즉시 호출되는 함수 표현식)](/en-US/docs/Glossary/IIFE)로 사용될 수 있습니다. 더 자세한 정보는 [함수](/ko/docs/Web/JavaScript/Reference/Functions) 장 참조.
함수 표현식(function expression)은 function 문과 매우 비슷하고 구문(syntax)이 거의 같습니다 (자세한 사항은 [function 문](/ko/docs/Web/JavaScript/Reference/Statements/function) 참조). 함수 표현식과 function 문 사이의 주요 차이점은 함수 이름으로, 함수 표현식으로 _익명_ 함수를 만들 경우 이 이름을 생략할 수 있습니다. 함수 표현식은 정의하자마자 실행되는 [IIFE (즉시 호출되는 함수 표현식)](/ko/docs/Glossary/IIFE)로 사용될 수 있습니다. 더 자세한 정보는 [함수](/ko/docs/Web/JavaScript/Reference/Functions) 장 참조.

### Function expression 끌어올리기

Expand All @@ -48,7 +48,7 @@ slug: Web/JavaScript/Reference/Operators/function

### 유명(named) 함수 표현식

함수 몸통 안 쪽에서 현재 함수를 참고하고 싶다면, 유명 함수를 생성해야 합니다. ***이 함수 이름은 함수의 몸통(범위) 안에서만 사용할 수 있습니다***. 이로써 비표준 [`arguments.callee`](/en-US/docs/Web/JavaScript/Reference/Functions/arguments/callee) 속성을 사용하는 것을 피할 수도 있습니다.
함수 몸통 안 쪽에서 현재 함수를 참고하고 싶다면, 유명 함수를 생성해야 합니다. ***이 함수 이름은 함수의 몸통(범위) 안에서만 사용할 수 있습니다***. 이로써 비표준 [`arguments.callee`](/ko/docs/Web/JavaScript/Reference/Functions/arguments/callee) 속성을 사용하는 것을 피할 수도 있습니다.

```js
var math = {
Expand All @@ -63,7 +63,7 @@ slug: Web/JavaScript/Reference/Operators/function
math.factit(3) //3;2;1;
```

함수가 할당된 변수는 `name` 속성을 가지게됩니다. 다른 변수에 할당되더라도 그 name 속성의 값은 변하지 않습니다. 함수의 이름이 생략되었다면, name 속성의 값은 그 변수의 이름(암묵적 이름)이 될 것입니다. 함수의 이름이 있다면 name 속성의 값은 그 함수의 이름(명시적 이름)이 될 것입니다. 이는 [화살표 함수(arrow functions)](/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions)에도 적용됩니다 (화살표 함수는 이름을 가지지 않으므로 해당 변수에 암묵적인 이름만 줄 수 있습니다).
함수가 할당된 변수는 `name` 속성을 가지게됩니다. 다른 변수에 할당되더라도 그 name 속성의 값은 변하지 않습니다. 함수의 이름이 생략되었다면, name 속성의 값은 그 변수의 이름(암묵적 이름)이 될 것입니다. 함수의 이름이 있다면 name 속성의 값은 그 함수의 이름(명시적 이름)이 될 것입니다. 이는 [화살표 함수(arrow functions)](/ko/docs/Web/JavaScript/Reference/Functions/Arrow_functions)에도 적용됩니다 (화살표 함수는 이름을 가지지 않으므로 해당 변수에 암묵적인 이름만 줄 수 있습니다).

```js
var foo = function() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ slug: Web/JavaScript/Reference/Operators/function*

## Description

`function*` expression 은 {{jsxref('Statements/function*', 'function* statement')}} 과 매우 유사하고 형식도 같습니다. `function*` expression 과 `function*` statement 의 주요한 차이점은 함수명으로,\* _`function_` expressions 에서는 익명 함수로 만들기 위해 함수명이 생략될 수 있습니다.보다 자세한 내용은 [functions](/ko/docs/Web/JavaScript/Reference/Functions) 을 참조하십시오.
`function*` expression 은 {{jsxref('Statements/function*', 'function* statement')}} 과 매우 유사하고 형식도 같습니다. `function*` expression 과 `function*` statement 의 주요한 차이점은 함수명으로, _`function*`_ expressions 에서는 익명 함수로 만들기 위해 함수명이 생략될 수 있습니다.보다 자세한 내용은 [functions](/ko/docs/Web/JavaScript/Reference/Functions) 을 참조하십시오.

## Examples

Expand All @@ -52,7 +52,7 @@ var x = function*(y) {

- {{jsxref("Statements/function*", "function* statement")}}
- {{jsxref("GeneratorFunction")}} object
- [The Iterator protocol](/en-US/docs/Web/JavaScript/Guide/The_Iterator_protocol)
- [The Iterator protocol](/ko/docs/Web/JavaScript/Guide/The_Iterator_protocol)
- {{jsxref("Operators/yield", "yield")}}
- {{jsxref("Operators/yield*", "yield*")}}
- {{jsxref("Function")}} object
Expand Down
6 changes: 3 additions & 3 deletions files/ko/web/javascript/reference/operators/in/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var color2 = "coral";

### 제거되었거나 정의되지 않은 속성에 대하여 `in` 연산자 사용하기

`in` 연산자는 [`delete`](/en-US/docs/Web/JavaScript/Reference/Operators/delete) 연산자로 제거된 속성에 대하여 `false`를 반환합니다.
`in` 연산자는 [`delete`](/ko/docs/Web/JavaScript/Reference/Operators/delete) 연산자로 제거된 속성에 대하여 `false`를 반환합니다.

```js
var myCar = {company: "Lamborghini", model: "Lamborghini Veneno Roadster", year: 2014};
Expand Down Expand Up @@ -100,7 +100,7 @@ trees[3] = undefined;

## 관련 문서

- [`delete`](/en-US/docs/Web/JavaScript/Reference/Operators/delete)
- [`delete`](/ko/docs/Web/JavaScript/Reference/Operators/delete)
- {{jsxref("Object.prototype.hasOwnProperty()")}}
- {{jsxref("Reflect.has()")}}
- [속성의, 소유와 셀 수 있는 성질](/en-US/docs/Enumerability_and_ownership_of_properties)
- [속성의, 소유와 셀 수 있는 성질](/ko/docs/Enumerability_and_ownership_of_properties)
2 changes: 1 addition & 1 deletion files/ko/web/javascript/reference/operators/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ slug: Web/JavaScript/Reference/Operators
### 선택적 연결 연산자

- {{JSxRef("Operators/Optional_chaining", "?.")}}
- : 선택적 연결 연산자는 참조가 [nullish](/en-US/docs/Glossary/nullish) ([`null`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/null) 또는 [`undefined`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined)) 인 경우 오류를 발생시키는 대신 `undefined`를 반환합니다.
- : 선택적 연결 연산자는 참조가 [nullish](/ko/docs/Glossary/nullish) ([`null`](/ko/docs/Web/JavaScript/Reference/Global_Objects/null) 또는 [`undefined`](/ko/docs/Web/JavaScript/Reference/Global_Objects/undefined)) 인 경우 오류를 발생시키는 대신 `undefined`를 반환합니다.

### 할당 연산자

Expand Down
4 changes: 2 additions & 2 deletions files/ko/web/javascript/reference/operators/new/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ slug: Web/JavaScript/Reference/Operators/new

언제든 이전에 정의된 객체에 속성을 추가할 수 있다. 예를 들면, `car1.color = "black"` 구문은 `color` 속성을 `car1`에 추가하고 해당 속성에 "`black`"이란 값을 할당한다. 그러나, 이것이 다른 객체들에게는 영향을 주지 않는다. 동일한 타입의 모든 객체들에게 새로운 속성을 추가하려면, `Car` 객체 타입의 정의에 이 속성을 추가해야한다.

[`Function.prototype`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/prototype) 속성을 사용하여 이전에 정의된 객체 타입에 공유 속성을 추가할 수 있다. 이것은 객체 타입의 인스턴스 하나에만 적용되는 것이 아니라 이 함수로 생성하는 모든 객체와 공유하는 속성을 정의한다.
[`Function.prototype`](/ko/docs/Web/JavaScript/Reference/Global_Objects/Function/prototype) 속성을 사용하여 이전에 정의된 객체 타입에 공유 속성을 추가할 수 있다. 이것은 객체 타입의 인스턴스 하나에만 적용되는 것이 아니라 이 함수로 생성하는 모든 객체와 공유하는 속성을 정의한다.

다음의 코드는 `car` 타입의 모든 객체에 "`original color`" 값을 갖는 color 속성을 추가한다. 그리고 `car1` 객체 인스턴스에서만 이 값을 문자열 "`black`"으로 덮어쓴다. 더 많은 정보는 [prototype](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/prototype)을 참조한다.
다음의 코드는 `car` 타입의 모든 객체에 "`original color`" 값을 갖는 color 속성을 추가한다. 그리고 `car1` 객체 인스턴스에서만 이 값을 문자열 "`black`"으로 덮어쓴다. 더 많은 정보는 [prototype](/ko/docs/Web/JavaScript/Reference/Global_Objects/Function/prototype)을 참조한다.

```js
function Car() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ original_slug: Web/JavaScript/Reference/Operators/Nullish_coalescing_operator

**널 병합 연산자 (`??`)** 는 왼쪽 피연산자가 [null](/ko/docs/Web/JavaScript/Reference/Global_Objects/null) 또는 [undefined](/ko/docs/Web/JavaScript/Reference/Global_Objects/undefined)일 때 오른쪽 피연산자를 반환하고, 그렇지 않으면 왼쪽 피연산자를 반환하는 논리 연산자이다.

이는 왼쪽 피연산자가 `null` 또는 `undefined` 뿐만 아니라 *[falsy](/en-US/docs/Web/JavaScript/Reference/Operators/Logical_Operators#Description) *값에 해당할 경우 오른쪽 피연산자를 반환하는 [논리 연산자 OR (`||`)](/en-US/docs/Web/JavaScript/Reference/Operators/Logical_Operators#Logical_OR_2)와는 대조된다. 다시 말해 만약 어떤 변수 foo에게 *[falsy](/en-US/docs/Web/JavaScript/Reference/Operators/Logical_Operators#Description) *값( `''` 또는 `0`)을 포함한 값을 제공하기 위해 `||`을 사용하는 것을 고려했다면 예기치 않는 동작이 발생할 수 있다. 하단에 더 많은 예제가 있다.
이는 왼쪽 피연산자가 `null` 또는 `undefined` 뿐만 아니라 _[falsy](/ko/docs/Web/JavaScript/Reference/Operators/Logical_Operators#Description)_ 값에 해당할 경우 오른쪽 피연산자를 반환하는 [논리 연산자 OR (`||`)](/ko/docs/Web/JavaScript/Reference/Operators/Logical_Operators#Logical_OR_2)와는 대조된다. 다시 말해 만약 어떤 변수 foo에게 _[falsy](/ko/docs/Web/JavaScript/Reference/Operators/Logical_Operators#Description)_ 값( `''` 또는 `0`)을 포함한 값을 제공하기 위해 `||`을 사용하는 것을 고려했다면 예기치 않는 동작이 발생할 수 있다. 하단에 더 많은 예제가 있다.

널 병합 연산자는 [연산자 우선 순위](/ko/docs/Web/JavaScript/Reference/Operators/Operator_Precedence)가 다섯번째로 낮은데, `||` 의 바로 아래이며 [조건부 (삼항) 연산자](/ko/docs/Web/JavaScript/Reference/Operators/Conditional_Operator)의 바로 위이다.

Expand All @@ -26,7 +26,7 @@ original_slug: Web/JavaScript/Reference/Operators/Nullish_coalescing_operator
### 변수에 기본값 할당
이전에는 변수에 기본값을 할당하고 싶을 때, 논리 연산자 OR ([`||`](/en-US/docs/Web/JavaScript/Reference/Operators/Logical_Operators#Logical_OR_2))을 사용하는 것이 일반적인 패턴이다:
이전에는 변수에 기본값을 할당하고 싶을 때, 논리 연산자 OR ([`||`](/ko/docs/Web/JavaScript/Reference/Operators/Logical_Operators#Logical_OR_2))을 사용하는 것이 일반적인 패턴이다:
```js
let foo;
Expand Down Expand Up @@ -83,7 +83,7 @@ console.log( B() ?? C() );
### No chaining with AND or OR operators
AND (`&&`) 와 OR 연산자 (`||`)를 `??`와 직접적으로 결합하여 사용하는 것은 불가능하다. 이 경우 [`SyntaxError`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError)가 발생된다.
AND (`&&`) 와 OR 연산자 (`||`)를 `??`와 직접적으로 결합하여 사용하는 것은 불가능하다. 이 경우 [`SyntaxError`](/ko/docs/Web/JavaScript/Reference/Global_Objects/SyntaxError)가 발생된다.
```js
null || undefined ?? "foo"; // raises a SyntaxError
Expand All @@ -98,7 +98,7 @@ true || undefined ?? "foo"; // raises a SyntaxError
### Optional chaining 연산자(`?.`)와의 관계
널 병합 연산자는 명확한 값으로 `undefined``null`을 처리하고, [optional chaining 연산자 (`?.`)](/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining)는 `null` or `undefined`일 수 있는 객체의 속성에 접근할 때 유용하다.
널 병합 연산자는 명확한 값으로 `undefined``null`을 처리하고, [optional chaining 연산자 (`?.`)](/ko/docs/Web/JavaScript/Reference/Operators/Optional_chaining)는 `null` or `undefined`일 수 있는 객체의 속성에 접근할 때 유용하다.
```js
let foo = { someFooProp: "hi" };
Expand Down Expand Up @@ -142,6 +142,6 @@ console.log(newObj.propC); // 42
## 참고
- [The optional chaining operator](/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining)
- [The logical OR (`||`) operator](/en-US/docs/Web/JavaScript/Reference/Operators/Logical_Operators#Logical_OR_2)
- [Default paramaters in functions](/en-US/docs/Web/JavaScript/Reference/Functions/Default_parameters)
- [The optional chaining operator](/ko/docs/Web/JavaScript/Reference/Operators/Optional_chaining)
- [The logical OR (`||`) operator](/ko/docs/Web/JavaScript/Reference/Operators/Logical_Operators#Logical_OR_2)
- [Default paramaters in functions](/ko/docs/Web/JavaScript/Reference/Functions/Default_parameters)
Loading

0 comments on commit e7dead4

Please sign in to comment.