diff options
Diffstat (limited to 'files/ko/web/javascript/reference/operators')
10 files changed, 22 insertions, 22 deletions
diff --git a/files/ko/web/javascript/reference/operators/async_function/index.html b/files/ko/web/javascript/reference/operators/async_function/index.html index d1ec146ca4..fda50e9a4a 100644 --- a/files/ko/web/javascript/reference/operators/async_function/index.html +++ b/files/ko/web/javascript/reference/operators/async_function/index.html @@ -1,13 +1,14 @@ --- title: async function 표현식 slug: Web/JavaScript/Reference/Operators/async_function +browser-compat: javascript.operators.async_function translation_of: Web/JavaScript/Reference/Operators/async_function --- <div>{{jsSidebar("Operators")}}</div> <p><strong><code>async function</code></strong> 키워드는 표현식 내에서 <code>async</code> 함수를 정의하기 위해 사용됩니다.</p> -<p>또한 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function" title="The async function keyword can be used to define async functions inside expressions.">async function statement</a>을 사용하여 async 함수를 정의할 수 있습니다.</p> +<p>또한 <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function">async function statement</a>을 사용하여 async 함수를 정의할 수 있습니다.</p> <h2 id="문법">문법</h2> @@ -83,9 +84,7 @@ add(10).then(v => { <h2 id="Browser_compatibility">Browser compatibility</h2> -<div>{{Compat("javascript.operators.async_function_expression")}} </div> - -<div id="compat-mobile"></div> +<div>{{Compat}}</div> <h2 id="See_also">See also</h2> diff --git a/files/ko/web/javascript/reference/operators/class/index.html b/files/ko/web/javascript/reference/operators/class/index.html index d15b532fbc..6ac133bf39 100644 --- a/files/ko/web/javascript/reference/operators/class/index.html +++ b/files/ko/web/javascript/reference/operators/class/index.html @@ -27,7 +27,7 @@ translation_of: Web/JavaScript/Reference/Operators/class <p>class 식은 <a href="/ko/docs/Web/JavaScript/Reference/Statements/class">class 문</a>과 구문이 비슷합니다. 그러나, class 식의 경우 클래스명("binding identifier")을 생략할 수 있는데 class 문으로는 할 수 없습니다.</p> -<p>class 문과 같이, class 식의 본체는 <a href="/ko/docs/Web/JavaScript/Reference/Strict_mode" title="strict mode">엄격 모드</a>에서 실행됩니다.</p> +<p>class 문과 같이, class 식의 본체는 <a href="/ko/docs/Web/JavaScript/Reference/Strict_mode">엄격 모드</a>에서 실행됩니다.</p> diff --git a/files/ko/web/javascript/reference/operators/delete/index.html b/files/ko/web/javascript/reference/operators/delete/index.html index 037c3bcd98..d2eafd97f1 100644 --- a/files/ko/web/javascript/reference/operators/delete/index.html +++ b/files/ko/web/javascript/reference/operators/delete/index.html @@ -6,6 +6,7 @@ tags: - Operator - Property - Reference +browser-compat: javascript.operators.delete translation_of: Web/JavaScript/Reference/Operators/delete --- <div>{{jsSidebar("Operators")}}</div> @@ -265,7 +266,7 @@ if (3 in trees) { <h2 id="브라우저_호환성">브라우저 호환성</h2> -<div id="compat-mobile">{{Compat("javascript.operators.delete")}}</div> +<div>{{Compat}}</div> <h2 id="크로스_브라우저_참고사항">크로스 브라우저 참고사항</h2> 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 aae1bd3e00..e367513864 100644 --- a/files/ko/web/javascript/reference/operators/destructuring_assignment/index.html +++ b/files/ko/web/javascript/reference/operators/destructuring_assignment/index.html @@ -341,7 +341,7 @@ whois(user); // "jdoe is John"</pre> <h3 id="계산된_속성_이름과_구조_분해">계산된 속성 이름과 구조 분해</h3> -<p>계산된 속성 이름(computed property name)은, <a href="/ko/docs/Web/JavaScript/Reference/Operators/Object_initializer#Computed_property_names" title="object literals">객체 리터럴</a>과 비슷하게 구조 분해에도 사용될 수 있습니다.</p> +<p>계산된 속성 이름(computed property name)은, <a href="/ko/docs/Web/JavaScript/Reference/Operators/Object_initializer#Computed_property_names">객체 리터럴</a>과 비슷하게 구조 분해에도 사용될 수 있습니다.</p> <pre class="brush: js">let key = "z"; let { [key]: foo } = { z: "bar" }; @@ -404,6 +404,6 @@ console.log(fizzBuzz); // "true" <h2 id="같이_보기">같이 보기</h2> <ul> - <li><a href="/ko/docs/Web/JavaScript/Reference/Operators/Assignment_Operators" title="Assignment operators">할당 연산자</a></li> + <li><a href="/ko/docs/Web/JavaScript/Reference/Operators/Assignment_Operators">할당 연산자</a></li> <li><a href="https://hacks.mozilla.org/2015/05/es6-in-depth-destructuring/">"ES6 in Depth: Destructuring" on hacks.mozilla.org</a></li> </ul> diff --git a/files/ko/web/javascript/reference/operators/function/index.html b/files/ko/web/javascript/reference/operators/function/index.html index 5f4977bfc7..caa5edbfc0 100644 --- a/files/ko/web/javascript/reference/operators/function/index.html +++ b/files/ko/web/javascript/reference/operators/function/index.html @@ -37,7 +37,7 @@ translation_of: Web/JavaScript/Reference/Operators/function <h2 id="설명">설명</h2> -<p>함수 표현식(function expression)은 function 문과 매우 비슷하고 구문(syntax)이 거의 같습니다 (자세한 사항은 <a href="/ko/docs/Web/JavaScript/Reference/Statements/function" title="function statement">function 문</a> 참조). 함수 표현식과 function 문 사이의 주요 차이점은 함수 이름으로, 함수 표현식으로 <em>익명</em> 함수를 만들 경우 이 이름을 생략할 수 있습니다. 함수 표현식은 정의하자마자 실행되는 <a href="https://developer.mozilla.org/en-US/docs/Glossary/IIFE">IIFE (즉시 호출되는 함수 표현식)</a>로 사용될 수 있습니다. 더 자세한 정보는 <a href="/ko/docs/Web/JavaScript/Reference/Functions" title="functions">함수</a> 장 참조.</p> +<p>함수 표현식(function expression)은 function 문과 매우 비슷하고 구문(syntax)이 거의 같습니다 (자세한 사항은 <a href="/ko/docs/Web/JavaScript/Reference/Statements/function">function 문</a> 참조). 함수 표현식과 function 문 사이의 주요 차이점은 함수 이름으로, 함수 표현식으로 <em>익명</em> 함수를 만들 경우 이 이름을 생략할 수 있습니다. 함수 표현식은 정의하자마자 실행되는 <a href="https://developer.mozilla.org/en-US/docs/Glossary/IIFE">IIFE (즉시 호출되는 함수 표현식)</a>로 사용될 수 있습니다. 더 자세한 정보는 <a href="/ko/docs/Web/JavaScript/Reference/Functions">함수</a> 장 참조.</p> <h3 id="Function_expression_끌어올리기">Function expression 끌어올리기</h3> diff --git a/files/ko/web/javascript/reference/operators/index.html b/files/ko/web/javascript/reference/operators/index.html index 1ddd778228..16133a2db7 100644 --- a/files/ko/web/javascript/reference/operators/index.html +++ b/files/ko/web/javascript/reference/operators/index.html @@ -10,7 +10,7 @@ translation_of: Web/JavaScript/Reference/Operators --- <div>{{jsSidebar("Operators")}}</div> -<p>이 장은 JavaScript의 모든 연산자<sup>operator</sup>, 식<sup>expression</sup> 및 키워드를 나열합니다.</p> +<p>이 장은 JavaScript의 모든 연산자, 식 및 키워드를 나열합니다.</p> <h2 id="항목별_식_및_연산자">항목별 식 및 연산자</h2> @@ -28,7 +28,7 @@ translation_of: Web/JavaScript/Reference/Operators <dt>{{JSxRef("Operators/class", "class")}}</dt> <dd><code>class</code> 키워드는 클래스를 정의합니다.</dd> <dt>{{JSxRef("Operators/function*", "function*")}}</dt> - <dd><code>function*</code> 키워드는 생성기<sup>generator</sup> 함수 식을 정의합니다.</dd> + <dd><code>function*</code> 키워드는 생성기 함수 식을 정의합니다.</dd> <dt>{{JSxRef("Operators/yield", "yield")}}</dt> <dd>생성기 함수를 일시정지 및 재개합니다.</dd> <dt>{{JSxRef("Operators/yield*", "yield*")}}</dt> @@ -162,14 +162,14 @@ translation_of: Web/JavaScript/Reference/Operators <dt>{{JSxRef("Operators/Inequality", "!=")}}</dt> <dd>부등 연산자.</dd> <dt>{{JSxRef("Operators/Strict_equality", "===")}}</dt> - <dd>일치<sup>identity</sup> 연산자.</dd> + <dd>일치 연산자.</dd> <dt>{{JSxRef("Operators/Strict_inequality", "!==")}}</dt> <dd>불일치 연산자.</dd> </dl> <h3 id="비트_시프트_연산자">비트 시프트 연산자</h3> -<p>피연산자의 모든 비트를 이동<sup>shift</sup>하는 연산.</p> +<p>피연산자의 모든 비트를 시프트하는 연산.</p> <dl> <dt>{{JSxRef("Operators/Left_shift", "<<")}}</dt> 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 3a4bb219af..b3bebf8541 100644 --- a/files/ko/web/javascript/reference/operators/object_initializer/index.html +++ b/files/ko/web/javascript/reference/operators/object_initializer/index.html @@ -90,7 +90,7 @@ var o = { <h3 id="속성_접근">속성 접근</h3> -<p>일단 객체를 생성하면, 읽거나 바꿀 수 있습니다. 객체 속성은 점 표기법 또는 각괄호 표기법을 사용하여 액세스될 수 있습니다. (자세한 사항은 <a href="/ko/docs/Web/JavaScript/Reference/Operators/Property_Accessors" title="property accessors">속성 접근자</a> 참조.)</p> +<p>일단 객체를 생성하면, 읽거나 바꿀 수 있습니다. 객체 속성은 점 표기법 또는 각괄호 표기법을 사용하여 액세스될 수 있습니다. (자세한 사항은 <a href="/ko/docs/Web/JavaScript/Reference/Operators/Property_Accessors">속성 접근자</a> 참조.)</p> <pre class="brush: js notranslate">object.foo; // "bar" object["age"]; // 42 @@ -185,7 +185,7 @@ var o = { <h3 id="계산된_속성명">계산된 속성명</h3> -<p>ECMAScript 2015를 시작으로, 객체 초기화 구문은 계산된 속성명(computed property name)도 지원합니다. 각괄호 <code>[]</code> 안에 식을 넣을 수 있고, 식이 계산되고 그 결과가 속성명으로 사용됩니다. 이는 이미 속성을 읽고 설정하는 데 사용했을 수 있는 <a href="/ko/docs/Web/JavaScript/Reference/Operators/Property_Accessors" title="property accessor">속성 접근자</a> 구문의 각괄호 표기법을 연상시킵니다. </p> +<p>ECMAScript 2015를 시작으로, 객체 초기화 구문은 계산된 속성명(computed property name)도 지원합니다. 각괄호 <code>[]</code> 안에 식을 넣을 수 있고, 식이 계산되고 그 결과가 속성명으로 사용됩니다. 이는 이미 속성을 읽고 설정하는 데 사용했을 수 있는 <a href="/ko/docs/Web/JavaScript/Reference/Operators/Property_Accessors">속성 접근자</a> 구문의 각괄호 표기법을 연상시킵니다. </p> <p>이제 당신은 객체 리터럴에서도 같은 구문을 쓸 수 있습니다:</p> @@ -288,5 +288,5 @@ assert(obj3.__proto__ === 17); <li><a href="/ko/docs/Web/JavaScript/Reference/Operators/Property_Accessors">속성 접근자</a></li> <li><code><a href="/ko/docs/Web/JavaScript/Reference/Functions/get">get</a></code> / <code><a href="/ko/docs/Web/JavaScript/Reference/Functions/set">set</a></code></li> <li><a href="/ko/docs/Web/JavaScript/Reference/Functions/Method_definitions">메서드 정의</a></li> - <li><a href="/ko/docs/Web/JavaScript/Reference/Lexical_grammar" title="Lexical grammar">어휘 문법</a></li> + <li><a href="/ko/docs/Web/JavaScript/Reference/Lexical_grammar">어휘 문법</a></li> </ul> 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 0d37a262c5..9f9ea86a93 100644 --- a/files/ko/web/javascript/reference/operators/operator_precedence/index.html +++ b/files/ko/web/javascript/reference/operators/operator_precedence/index.html @@ -19,9 +19,9 @@ original_slug: Web/JavaScript/Reference/Operators/연산자_우선순위 <h2 id="우선순위와_결합성">우선순위와 결합성</h2> -<p>아래와 같이 표현할 수 있는 표현식을 생각해 봅시다. 연산자<sub>1</sub>과 연산자<sub>2</sub>의 자리에는 아무 연산자를 넣을 수 있습니다.</p> +<p>아래와 같이 표현할 수 있는 표현식을 생각해 봅시다. 연산자1과 연산자2의 자리에는 아무 연산자를 넣을 수 있습니다.</p> -<pre class="syntaxbox">a 연산자<sub>1</sub> b 연산자<sub>2</sub> c</pre> +<pre class="syntaxbox">a 연산자1 b 연산자2 c</pre> <p>두 연산자의 우선순위(아래 표 참조)가 다를 경우, 우선순위가 높은 연산자가 먼저 실행되고 결합성은 영향을 미치지 않습니다. 아래 예제에서는 덧셈이 곱셈보다 먼저 쓰였음에도 곱셈의 우선순위가 높기 때문에 먼저 실행됩니다.</p> @@ -30,7 +30,7 @@ console.log(3 + (10 * 2)); // 23을 출력, 괄호는 불필요함 console.log((3 + 10) * 2); // 26을 출력, 괄호로 인해 실행 순서가 바뀜 </pre> -<p>좌결합성(왼쪽에서 오른쪽으로)은 표현식이 <code>(a 연산자<sub>1</sub> b) 연산자<sub>2</sub> c</code>와 같이, 우결합성(오른쪽에서 왼쪽으로)은 <code>a 연산자<sub>1</sub> (b 연산자<sub>2</sub> c)</code>와 같이 계산된다는 의미입니다. 대입 연산자는 우결합성이므로 다음과 같은 코드를 작성할 수 있습니다.</p> +<p>좌결합성(왼쪽에서 오른쪽으로)은 표현식이 <code>(a 연산자1 b) 연산자2 c</code>와 같이, 우결합성(오른쪽에서 왼쪽으로)은 <code>a 연산자1 (b 연산자2 c)</code>와 같이 계산된다는 의미입니다. 대입 연산자는 우결합성이므로 다음과 같은 코드를 작성할 수 있습니다.</p> <pre class="brush: js">a = b = 5; // a = (b = 5);와 같음 </pre> diff --git a/files/ko/web/javascript/reference/operators/property_accessors/index.html b/files/ko/web/javascript/reference/operators/property_accessors/index.html index 83ae2e0b80..790ababd4e 100644 --- a/files/ko/web/javascript/reference/operators/property_accessors/index.html +++ b/files/ko/web/javascript/reference/operators/property_accessors/index.html @@ -93,7 +93,7 @@ console.log(object[bar]); <h3 id="메서드_바인딩">메서드 바인딩</h3> -<p>메서드는 해당 메서드의 객체에 바인딩되지 않습니다. 특히 <code>this</code>는 메서드 내에 고정되지 않으므로 <code>this</code>가 항상 현재 메서드를 포함하는 객체를 참조하는건 아닙니다. 대신, <code>this</code>는 함수 호출 방식에 따라 "전달"됩니다. <a href="/ko/docs/Web/JavaScript/Reference/Operators/this#bind_메서드" title="method binding">메서드 바인딩</a>을 참고하세요.</p> +<p>메서드는 해당 메서드의 객체에 바인딩되지 않습니다. 특히 <code>this</code>는 메서드 내에 고정되지 않으므로 <code>this</code>가 항상 현재 메서드를 포함하는 객체를 참조하는건 아닙니다. 대신, <code>this</code>는 함수 호출 방식에 따라 "전달"됩니다. <a href="/ko/docs/Web/JavaScript/Reference/Operators/this#bind_메서드">메서드 바인딩</a>을 참고하세요.</p> <h3 id="eval()_주의사항"><code>eval()</code> 주의사항</h3> diff --git a/files/ko/web/javascript/reference/operators/this/index.html b/files/ko/web/javascript/reference/operators/this/index.html index bc27366762..e74032c1c6 100644 --- a/files/ko/web/javascript/reference/operators/this/index.html +++ b/files/ko/web/javascript/reference/operators/this/index.html @@ -28,7 +28,7 @@ translation_of: Web/JavaScript/Reference/Operators/this <h2 id="전역_문맥">전역 문맥</h2> -<p>전역 실행 문맥<sup>global execution context</sup>에서 <code>this</code>는 엄격 모드 여부에 관계 없이 전역 객체를 참조합니다.</p> +<p>전역 실행 맥락에서 <code>this</code>는 엄격 모드 여부에 관계 없이 전역 객체를 참조합니다.</p> <pre class="brush: js notranslate">// 웹 브라우저에서는 window 객체가 전역 객체 console.log(this === window); // true @@ -142,7 +142,7 @@ console.log(o.a, o.f(), o.g(), o.h()); // 37, 37, azerty, azerty</pre> <h3 id="화살표_함수">화살표 함수</h3> -<p><a href="/ko/docs/Web/JavaScript/Reference/Functions/%EC%95%A0%EB%A1%9C%EC%9A%B0_%ED%8E%91%EC%85%98">화살표 함수</a>에서 <code>this</code>는 자신을 감싼 정적 범위<sup>lexical context</sup>입니다. 전역 코드에서는 전역 객체를 가리킵니다.</p> +<p><a href="/ko/docs/Web/JavaScript/Reference/Functions/%EC%95%A0%EB%A1%9C%EC%9A%B0_%ED%8E%91%EC%85%98">화살표 함수</a>에서 <code>this</code>는 자신을 감싼 정적 범위입니다. 전역 코드에서는 전역 객체를 가리킵니다.</p> <pre class="brush: js notranslate">var globalObject = this; var foo = (() => this); |