From c5e82bf41f336a59704ee8c429e3147f73fa8a48 Mon Sep 17 00:00:00 2001 From: 3indblown Leaf <69508345+kraccoon-dev@users.noreply.github.com> Date: Wed, 16 Feb 2022 17:11:01 +0900 Subject: remove all span tags 1 (#3920) Co-authored-by: Kyle --- .../guide/details_of_the_object_model/index.html | 2 +- files/ko/web/javascript/guide/functions/index.html | 44 +++++++++++----------- files/ko/web/javascript/guide/index.html | 30 +++++++-------- .../javascript/guide/numbers_and_dates/index.html | 2 +- .../regular_expressions/assertions/index.html | 8 ++-- .../guide/regular_expressions/index.html | 4 +- .../javascript/guide/text_formatting/index.html | 16 ++++---- .../web/javascript/guide/using_promises/index.html | 2 +- files/ko/web/javascript/index.html | 2 +- .../web/javascript/language_resources/index.html | 2 +- .../reference/errors/illegal_character/index.html | 2 +- .../global_objects/array/entries/index.html | 2 +- .../global_objects/array/flatmap/index.html | 26 ++++++------- .../reference/global_objects/array/from/index.html | 2 +- .../global_objects/array/reduce/index.html | 3 +- .../global_objects/date/getday/index.html | 3 +- .../reference/global_objects/decodeuri/index.html | 2 +- .../global_objects/decodeuricomponent/index.html | 2 +- .../reference/global_objects/encodeuri/index.html | 9 +++-- .../global_objects/encodeuricomponent/index.html | 5 ++- 20 files changed, 86 insertions(+), 82 deletions(-) diff --git a/files/ko/web/javascript/guide/details_of_the_object_model/index.html b/files/ko/web/javascript/guide/details_of_the_object_model/index.html index d81d17d13f..d43c8951e0 100644 --- a/files/ko/web/javascript/guide/details_of_the_object_model/index.html +++ b/files/ko/web/javascript/guide/details_of_the_object_model/index.html @@ -299,7 +299,7 @@ mark.projects = ["navigator"];

위의 구문을 실행한 직후, mark객체는 "none"이라는 값을 가지는 전문분야(specialty)속성을 가지게 됩니다.아래의 그림들은 해당 속성을 추가한 후 엔지니어(Engineer) 프로토타입에 대해 해당 속성을 재정의 했을 경우 각 객체에 미치는 영향을 보여줍니다.


- 속성의 추가

+ 속성의 추가

좀 더 유연한 생성자들

diff --git a/files/ko/web/javascript/guide/functions/index.html b/files/ko/web/javascript/guide/functions/index.html index ce931d69b4..34cc014ae9 100644 --- a/files/ko/web/javascript/guide/functions/index.html +++ b/files/ko/web/javascript/guide/functions/index.html @@ -77,19 +77,19 @@ console.log(factorial(3));

다음 코드에서, 함수 표현식으로 정의된 함수를 인자로 받아, 2번 째 인자인 배열의 모든 요소에 대해 그 함수를 실행합니다.

-
function map(f, a) {
-  var result = []; // Create a new Array
-  var i; // Declare variable
-  for (i = 0; i != a.length; i++)
-    result[i] = f(a[i]);
-      return result;
-}
-var f = function(x) {
-   return x * x * x;
-}
-var numbers = [0, 1, 2, 5, 10];
-var cube = map(f,numbers);
-console.log(cube);
+
function map(f, a) {
+  var result = []; // Create a new Array
+  var i; // Declare variable
+  for (i = 0; i != a.length; i++)
+    result[i] = f(a[i]);
+      return result;
+}
+var f = function(x) {
+   return x * x * x;
+}
+var numbers = [0, 1, 2, 5, 10];
+var cube = map(f,numbers);
+console.log(cube);

함수는 [0, 1, 8, 125, 1000] 을 반환합니다.

@@ -217,7 +217,7 @@ getScore(); // Returns "Chamahk scored 5"
  • foo()
  • -

    자신을 호출하는 함수를 재귀 함수라고 합니다. 어떤 면에서, 재귀는 루프와 유사합니다. 둘 다 동일한 코드를 여러 번 실행하고, 조건(무한 루프를 방지하거나, 이 경우에는 오히려 무한 재귀하는)을 요구합니다. 예를 들어, 다음 루프는:

    +

    자신을 호출하는 함수를 재귀 함수라고 합니다. 어떤 면에서, 재귀는 루프와 유사합니다. 둘 다 동일한 코드를 여러 번 실행하고, 조건(무한 루프를 방지하거나, 이 경우에는 오히려 무한 재귀하는)을 요구합니다. 예를 들어, 다음 루프는:

    var x = 0;
     while (x < 10) { // "x < 10" is the loop condition
    @@ -354,7 +354,7 @@ A(1); // logs 6 (1 + 2 + 3)
     
     

    이름 충돌

    -

    클로저의 범위에서 두 개의 인수 또는 변수의 이름이 같은 경우, 이름 충돌이 있습니다. 더 안쪽 범위가 우선순위를 갖습니다. 그래서 가장 바깥 범위는 우선순위가 가장 낮은 반면에, 가장 안쪽 범위는 가장 높은 우선순위를 갖습니다. 이것이 범위 체인(scope chaini)입니다. 체인에서 첫번째는 가장 안쪽 범위이고, 마지막 가장 바깥 쪽의 범위입니다. 다음 사항을 고려하세요:

    +

    클로저의 범위에서 두 개의 인수 또는 변수의 이름이 같은 경우, 이름 충돌이 있습니다. 더 안쪽 범위가 우선순위를 갖습니다. 그래서 가장 바깥 범위는 우선순위가 가장 낮은 반면에, 가장 안쪽 범위는 가장 높은 우선순위를 갖습니다. 이것이 범위 체인(scope chaini)입니다. 체인에서 첫번째는 가장 안쪽 범위이고, 마지막은 가장 바깥 쪽의 범위입니다. 다음 사항을 고려하세요:

    function outside() {
       var x = 10;
    @@ -587,15 +587,15 @@ var p = new Person();

    화살표 함수에는 this;가 없습니다. 화살표 함수를 포함하는 객체 값이 사용됩니다. 따라서 다음 코드에서 setInterval에 전달 된 함수 내의 this 값은 화살표 함수를 둘러싼 함수의 this와 같은 값을 갖습니다.

    -
    function Person() {
    -  this.age = 0;
    +
    function Person() {
    +  this.age = 0;
     
    -  setInterval(() => {
    -    this.age++; // |this| properly refers to the person object
    -  }, 1000);
    -}
    +  setInterval(() => {
    +    this.age++; // |this| properly refers to the person object
    +  }, 1000);
    +}
     
    -var p = new Person();
    +var p = new Person();

    미리 정의된 함수들

    diff --git a/files/ko/web/javascript/guide/index.html b/files/ko/web/javascript/guide/index.html index 85c38e4c45..7ea4e58ad4 100644 --- a/files/ko/web/javascript/guide/index.html +++ b/files/ko/web/javascript/guide/index.html @@ -17,7 +17,7 @@ translation_of: Web/JavaScript/Guide

    본 안내서는 여러 장으로 구성되어 있습니다.

    {{jsxref("String.trim", "trim")}} - 문자열의 시작과 끝에서 공백을 자릅니다. + 문자열의 시작과 끝에서 공백을 자릅니다. @@ -172,7 +172,7 @@ mystring[0]; // This returns "H"

    템플릿 문자열은 포함 식을 용납하는 문자열 리터럴입니다. 여러분은 그것들과 함께 다중 선 문자열 및 문자열 보간 기능을 사용할 수 있습니다.

    -

    템플릿 문자열은 작은따옴표나 큰따옴표 대신에 back-tick (` `) (grave accent)문자로 묶습니다. 템플릿 문자열은 자리 표시자를 포함 할 수 있습니다. 이들은 달러 기호 중괄호로 표시됩니다.  (${expression})

    +

    템플릿 문자열은 작은따옴표나 큰따옴표 대신에 back-tick (` `) (grave accent)문자로 묶습니다. 템플릿 문자열은 자리 표시자를 포함 할 수 있습니다. 이들은 달러 기호와 중괄호로 표시됩니다.  (${expression})

    다중 선

    diff --git a/files/ko/web/javascript/guide/using_promises/index.html b/files/ko/web/javascript/guide/using_promises/index.html index 953929fe28..53dbb7a00f 100644 --- a/files/ko/web/javascript/guide/using_promises/index.html +++ b/files/ko/web/javascript/guide/using_promises/index.html @@ -31,7 +31,7 @@ translation_of: Web/JavaScript/Guide/Using_promises

    만약 createAudioFileAsync() 함수가 Promise를 반환해주도록 수정해본다면, 다음과 같이 간단하게 사용되어질 수 있습니다.

    -
    createAudioFileAsync(audioSettings).then(successCallback, failureCallback);
    +
    createAudioFileAsync(audioSettings).then(successCallback, failureCallback);

    …조금 더 간단하게 써보자면:

    diff --git a/files/ko/web/javascript/index.html b/files/ko/web/javascript/index.html index b4d4dbc249..e93db684ee 100644 --- a/files/ko/web/javascript/index.html +++ b/files/ko/web/javascript/index.html @@ -12,7 +12,7 @@ translation_of: Web/JavaScript ---
    {{JsSidebar}}
    -

    JavaScript (JS)는 가벼운, 인터프리터 혹은 just-in-time 컴파일 프로그래밍 언어로, {{Glossary("First-class Function", "일급 함수")}}를 지원합니다. 웹 페이지를 위한 스크립트 언어로 잘 알려져 있지만, {{Glossary("Node.js")}}, Apache CouchDB, Adobe Acrobat처럼 많은 비 브라우저 환경에서도 사용하고 있습니다. JavaScript는 {{Glossary("Prototype-based programming", "프로토타입 기반")}}, 다중 패러다임, 단일 스레드, 동적 언어로, 객체지향형, 명령형, 선언형(함수형 프로그래밍 등) 스타일을 지원합니다. 자세한 내용은 JavaScript에 대하여를 참고하세요.

    +

    JavaScript (JS)는 가벼운, 인터프리터 혹은 just-in-time 컴파일 프로그래밍 언어로, {{Glossary("First-class Function", "일급 함수")}}를 지원합니다. 웹 페이지를 위한 스크립트 언어로 잘 알려져 있지만, {{Glossary("Node.js")}}, Apache CouchDB, Adobe Acrobat처럼 많은 비 브라우저 환경에서도 사용하고 있습니다. JavaScript는 {{Glossary("Prototype-based programming", "프로토타입 기반")}}, 다중 패러다임, 단일 스레드, 동적 언어로, 객체지향형, 명령형, 선언형(함수형 프로그래밍 등) 스타일을 지원합니다. 자세한 내용은 JavaScript에 대하여를 참고하세요.

    해당 섹션은 JavaScript 언어 자체를 다루며 웹 페이지 또는 다른 사용 환경에 대해 다루지 않습니다. 웹 페이지의 특정 {{Glossary("API","API")}}에 대한 정보를 알고 싶다면, 웹 API와 {{Glossary("DOM")}}을 참고하시기 바랍니다.

    diff --git a/files/ko/web/javascript/language_resources/index.html b/files/ko/web/javascript/language_resources/index.html index ec37f4b7a7..794d9cd8ff 100644 --- a/files/ko/web/javascript/language_resources/index.html +++ b/files/ko/web/javascript/language_resources/index.html @@ -137,7 +137,7 @@ original_slug: Web/JavaScript/언어_리소스

    ECMAScript의 역사에 대한 자세한 정보는 Wikipedia ECMAScript entry를 살펴보세요.

    -

    여러분은 코드네임 "Harmony"로 불리우는 ECMAScript의 다음 개정에 참여하거나 그냥 진행상황을 확인할 수도 있습니다.  또한 ECMAScript 국제화 API 스펙도 공개 위키와 ecmascript.org 에 연결된 es-discuss mailing list에서도 확인할 수 있습니다.

    +

    여러분은 코드네임 "Harmony"로 불리우는 ECMAScript의 다음 개정에 참여하거나 그냥 진행상황을 확인할 수도 있습니다.  또한 ECMAScript 국제화 API 스펙도 공개 위키와 ecmascript.org 에 연결된 es-discuss mailing list에서도 확인할 수 있습니다.

    구현

    diff --git a/files/ko/web/javascript/reference/errors/illegal_character/index.html b/files/ko/web/javascript/reference/errors/illegal_character/index.html index b3cd3a9750..d10e1b1289 100644 --- a/files/ko/web/javascript/reference/errors/illegal_character/index.html +++ b/files/ko/web/javascript/reference/errors/illegal_character/index.html @@ -48,7 +48,7 @@ var foo = 'bar'; // SyntaxError: illegal character var foo = 'bar'; -

    일부 편집기와 IDE는 문제가 있는 부분을 알려주거나 적어도 강조 표시를 해주지만 전부는 아닙니다. 이런 에러가 발생했을 때 무엇이 문제인지 찾을 수 없는 경우, 문제가 있는 줄을 지우고 다시 작성하는 것 가장 좋습니다.

    +

    일부 편집기와 IDE는 문제가 있는 부분을 알려주거나 적어도 강조 표시를 해주지만 전부는 아닙니다. 이런 에러가 발생했을 때 무엇이 문제인지 찾을 수 없는 경우, 문제가 있는 줄을 지우고 다시 작성하는 것 가장 좋습니다.

    문자 빠트리기

    diff --git a/files/ko/web/javascript/reference/global_objects/array/entries/index.html b/files/ko/web/javascript/reference/global_objects/array/entries/index.html index 71d7c8d48f..e196886b38 100644 --- a/files/ko/web/javascript/reference/global_objects/array/entries/index.html +++ b/files/ko/web/javascript/reference/global_objects/array/entries/index.html @@ -64,7 +64,7 @@ for (let e of iterator) { -

    브라우저 호환성

    +

    브라우저 호환성

    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 93d92580b8..3e85dde980 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 @@ -49,13 +49,13 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/flatMap

    mapflatMap

    -
    let arr1 = [1, 2, 3, 4];
    +
    let arr1 = [1, 2, 3, 4];
     
    -arr1.map(x => [x * 2]);
    +arr1.map(x => [x * 2]);
     // [[2], [4], [6], [8]]
     
    -arr1.flatMap(x => [x * 2]);
    -// [2, 4, 6, 8]
    +arr1.flatMap(x => [x * 2]);
    +// [2, 4, 6, 8]
     
     // 한 레벨만 평탄화됨
     arr1.flatMap(x => [[x * 2]]);
    @@ -71,8 +71,8 @@ arr1.flatMap(x => [[x * 2]]);
     arr1.map(x=>x.split(" "));
     // [["it's","Sunny","in"],[""],["California"]]
     
    -arr1.flatMap(x => x.split(" "));
    -// ["it's","Sunny","in","California"]
    +arr1.flatMap(x => x.split(" ")); +// ["it's","Sunny","in","California"]

    출력 리스트의 길이는 입력 리스트의 길이와 다를 수 있습니다.

    @@ -93,21 +93,21 @@ a.flatMap( (n) => // expected output: [4, 1, 4, 20, 16, 1, 18] -
    //=> [1, 2, 3, 4, 5, 6, 7, 8, 9]
    +
    //=> [1, 2, 3, 4, 5, 6, 7, 8, 9]

    대안

    reduceconcat

    -
    var arr1 = [1, 2, 3, 4];
    -
    -arr1.flatMap(x => [x * 2]);
    +
    var arr1 = [1, 2, 3, 4];
    +
    +arr1.flatMap(x => [x * 2]);
     // 다음과 동일합니다
    -arr1.reduce((acc, x) => acc.concat([x * 2]), []);
    -// [2, 4, 6, 8]
    +arr1.reduce((acc, x) => acc.concat([x * 2]), []);
    +// [2, 4, 6, 8]
     
    -
    //=> [1, 2, 3, 4, 5, 6, 7, 8, 9]
    +
    //=> [1, 2, 3, 4, 5, 6, 7, 8, 9]

    명세

    diff --git a/files/ko/web/javascript/reference/global_objects/array/from/index.html b/files/ko/web/javascript/reference/global_objects/array/from/index.html index 1f0a5776ba..ecebfcc96d 100644 --- a/files/ko/web/javascript/reference/global_objects/array/from/index.html +++ b/files/ko/web/javascript/reference/global_objects/array/from/index.html @@ -23,7 +23,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/from
    Array.from(arrayLike[, mapFn[, thisArg]])
     
    -

    매개변수

    +

    매개변수

    arrayLike
    diff --git a/files/ko/web/javascript/reference/global_objects/array/reduce/index.html b/files/ko/web/javascript/reference/global_objects/array/reduce/index.html index 94e1d322a4..d9bd819489 100644 --- a/files/ko/web/javascript/reference/global_objects/array/reduce/index.html +++ b/files/ko/web/javascript/reference/global_objects/array/reduce/index.html @@ -12,7 +12,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/Reduce ---
    {{JSRef}}
    -

    reduce() 메서드는 배열의 각 요소에 대해 주어진 리듀서(reducer) 함수를 실행하고, 하나의 결과값을 반환합니다.

    +

    reduce() 메서드는 배열의 각 요소에 대해 주어진 리듀서(reducer) 함수를 실행하고, 하나의 결과값을 반환합니다.

    +
    {{EmbedInteractiveExample("pages/js/array-reduce.html")}}
    diff --git a/files/ko/web/javascript/reference/global_objects/date/getday/index.html b/files/ko/web/javascript/reference/global_objects/date/getday/index.html index f671068f12..2520b6e30b 100644 --- a/files/ko/web/javascript/reference/global_objects/date/getday/index.html +++ b/files/ko/web/javascript/reference/global_objects/date/getday/index.html @@ -11,7 +11,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Date/getDay ---
    {{JSRef}}
    -

    getDay() 메서드는 주어진 날짜의 현지 시간 기준 요일을 반환합니다. 0은 일요일을 나타냅니다. 현재의 일을 반환하려면 {{jsxref("Date.prototype.getDate()")}}를 사용하세요.

    +

    getDay() 메서드는 주어진 날짜의 현지 시간 기준 요일을 반환합니다. 0은 일요일을 나타냅니다. 현재의 일을 반환하려면 {{jsxref("Date.prototype.getDate()")}}를 사용하세요.

    +
    {{EmbedInteractiveExample("pages/js/date-getday.html")}}
    diff --git a/files/ko/web/javascript/reference/global_objects/decodeuri/index.html b/files/ko/web/javascript/reference/global_objects/decodeuri/index.html index 7e980efb4c..e5bd19d7fb 100644 --- a/files/ko/web/javascript/reference/global_objects/decodeuri/index.html +++ b/files/ko/web/javascript/reference/global_objects/decodeuri/index.html @@ -34,7 +34,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/decodeURI

    설명

    -

    암호화된 URI의 각 이스케이프 시퀀스(확장문자열)를 자신을 나타내는 문자로 바꾸지만 {{jsxref ( "encodeURI")}}에서 도입할 수 없었던 이스케이프 시퀀스는 해독하지 않습니다. "#"문자는 이스케이프 시퀀스에서 해독되지 않습니다.

    +

    암호화된 URI의 각 이스케이프 시퀀스(확장문자열)를 자신을 나타내는 문자로 바꾸지만 {{jsxref ( "encodeURI")}}에서 도입할 수 없었던 이스케이프 시퀀스는 해독하지 않습니다. "#"문자는 이스케이프 시퀀스에서 해독되지 않습니다.

    예제

    diff --git a/files/ko/web/javascript/reference/global_objects/decodeuricomponent/index.html b/files/ko/web/javascript/reference/global_objects/decodeuricomponent/index.html index 6cae8361ae..cec06b85a9 100644 --- a/files/ko/web/javascript/reference/global_objects/decodeuricomponent/index.html +++ b/files/ko/web/javascript/reference/global_objects/decodeuricomponent/index.html @@ -31,7 +31,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/decodeURIComponent

    예외

    -

    잘못 사용되었을 경우 {{jsxref ( "URIError")}} ( " malformed URI sequence ") 예외를 발생시킵니다.

    +

    잘못 사용되었을 경우 {{jsxref ( "URIError")}} ( " malformed URI sequence ") 예외를 발생시킵니다.

    설명

    diff --git a/files/ko/web/javascript/reference/global_objects/encodeuri/index.html b/files/ko/web/javascript/reference/global_objects/encodeuri/index.html index 1345eb329e..1db8956f6d 100644 --- a/files/ko/web/javascript/reference/global_objects/encodeuri/index.html +++ b/files/ko/web/javascript/reference/global_objects/encodeuri/index.html @@ -10,7 +10,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/encodeURI ---
    {{jsSidebar("Objects")}}
    -

    encodeURI() 함수는 {{glossary("URI")}}의 특정한 문자를 UTF-8로 인코딩해 하나, 둘, 셋, 혹은 네 개의 연속된 이스케이프 문자로 나타냅니다. (두 개의 대리 문자로 이루어진 문자만 이스케이프 문자 네 개로 변환됩니다.)

    +

    encodeURI() 함수는 {{glossary("URI")}}의 특정한 문자를 UTF-8로 인코딩해 하나, 둘, 셋, 혹은 네 개의 연속된 이스케이프 문자로 나타냅니다. (두 개의 대리 문자로 이루어진 문자만 이스케이프 문자 네 개로 변환됩니다.)

    +
    {{EmbedInteractiveExample("pages/js/globalprops-encodeuri.html")}}
    @@ -33,11 +34,11 @@ translation_of: Web/JavaScript/Reference/Global_Objects/encodeURI

    설명

    -

    encodeURI() 함수는 URI에서 특별한 뜻을 가진 문자(예약 문자)는 인코딩 하지 않습니다. 아래 예제는 "URI 도식"이 포함할 수 있는 모든 부분을 담고 있습니다. 일부 문자가 어떤 방식으로 특별한 의미를 주입하고 있는지 잘 살펴보세요.

    +

    encodeURI() 함수는 URI에서 특별한 뜻을 가진 문자(예약 문자)는 인코딩 하지 않습니다. 아래 예제는 "URI 도식"이 포함할 수 있는 모든 부분을 담고 있습니다. 일부 문자가 어떤 방식으로 특별한 의미를 주입하고 있는지 잘 살펴보세요.

    http://username:password@www.example.com:80/path/to/file.php?foo=316&bar=this+has+spaces#anchor
    -

    따라서 encodeURI()는 완전한 URI를 형성하는데 필요한 문자는 인코딩 하지 않습니다. 또한, 예약된 목적을 가지지는 않지만 URI가 그대로 포함할 수 있는 몇 가지 문자("비예약 표식")도 인코딩 하지 않습니다. (RFC 2396을 참고하세요)

    +

    따라서 encodeURI()는 완전한 URI를 형성하는데 필요한 문자는 인코딩 하지 않습니다. 또한, 예약된 목적을 가지지는 않지만 URI가 그대로 포함할 수 있는 몇 가지 문자("비예약 표식")도 인코딩 하지 않습니다. (RFC 2396을 참고하세요)

    encodeURI() 는 다음 문자를 제외한 문자를 이스케이프 합니다.

    @@ -65,7 +66,7 @@ console.log(encodeURIComponent(set3)); // ABC%20abc%20123 (공백은 %20으로

    encodeURI() 혼자서는 {{domxref("XMLHttpRequest")}} 등이 사용할, 적합한 HTTP {{httpmethod("GET")}}과 {{httpmethod("POST")}} 요청을 구성할 수 없습니다. GETPOST에서 특별한 문자로 취급하는 "&", "+", "="를 인코딩 하지 않기 때문입니다. 그러나 encodeURIComponent()는 저 세 문자도 인코딩 대상에 포함합니다.

    -

    상위-하위 쌍을 이루지 않은 단일 대리 문자를 인코딩 시도하면 {{jsxref("URIError")}}가 발생합니다.

    +

    상위-하위 쌍을 이루지 않은 단일 대리 문자를 인코딩 시도하면 {{jsxref("URIError")}}가 발생합니다.

    // high-low pair ok
     console.log(encodeURIComponent('\uD800\uDFFF'));
    diff --git a/files/ko/web/javascript/reference/global_objects/encodeuricomponent/index.html b/files/ko/web/javascript/reference/global_objects/encodeuricomponent/index.html
    index 3208e449d3..287c7f1f42 100644
    --- a/files/ko/web/javascript/reference/global_objects/encodeuricomponent/index.html
    +++ b/files/ko/web/javascript/reference/global_objects/encodeuricomponent/index.html
    @@ -9,7 +9,8 @@ translation_of: Web/JavaScript/Reference/Global_Objects/encodeURIComponent
     ---
     
    {{jsSidebar("Objects")}}
    -

    encodeURIComponent() 함수는 {{glossary("URI")}}의 특정한 문자를 UTF-8로 인코딩해 하나, 둘, 셋, 혹은 네 개의 연속된 이스케이프 문자로 나타냅니다. (두 개의 대리 문자로 이루어진 문자만 이스케이프 문자 네 개로 변환됩니다.)

    +

    encodeURIComponent() 함수는 {{glossary("URI")}}의 특정한 문자를 UTF-8로 인코딩해 하나, 둘, 셋, 혹은 네 개의 연속된 이스케이프 문자로 나타냅니다. (두 개의 대리 문자로 이루어진 문자만 이스케이프 문자 네 개로 변환됩니다.)

    +
    {{EmbedInteractiveExample("pages/js/globalprops-encodeuricomponent.html")}}
    @@ -58,7 +59,7 @@ console.log(encodeURIComponent(set3)); // %23 console.log(encodeURIComponent(set4)); // ABC%20abc%20123 (the space gets encoded as %20)
    -

    상위-하위 쌍을 이루지 않은 단일 대리 문자를 인코딩 시도하면 {{jsxref("URIError")}}가 발생합니다.

    +

    상위-하위 쌍을 이루지 않은 단일 대리 문자를 인코딩 시도하면 {{jsxref("URIError")}}가 발생합니다.

    // high-low pair ok
     console.log(encodeURIComponent('\uD800\uDFFF'));
    -- 
    cgit v1.2.3-54-g00ecf