From 45dd46e6b17e45bcb3655c53eb921119359336f7 Mon Sep 17 00:00:00 2001 From: 3indblown Leaf <69508345+kraccoon-dev@users.noreply.github.com> Date: Sat, 12 Feb 2022 20:27:08 +0900 Subject: remove all span tags 2 (#3921) --- .../reference/global_objects/function/index.html | 4 +- .../global_objects/intl/locale/index.html | 4 +- .../global_objects/intl/locale/language/index.html | 4 +- .../reference/global_objects/json/parse/index.html | 3 +- .../global_objects/json/stringify/index.html | 3 +- .../reference/global_objects/math/cbrt/index.html | 3 +- .../reference/global_objects/math/index.html | 3 +- .../global_objects/number/isnan/index.html | 3 +- .../global_objects/object/freeze/index.html | 4 +- .../global_objects/object/keys/index.html | 6 +- .../global_objects/promise/race/index.html | 84 +++++++++++----------- .../global_objects/reflect/isextensible/index.html | 2 +- .../reflect/preventextensions/index.html | 3 +- .../reflect/setprototypeof/index.html | 3 +- .../reference/global_objects/string/index.html | 2 +- .../global_objects/string/startswith/index.html | 3 +- 16 files changed, 76 insertions(+), 58 deletions(-) (limited to 'files/ko/web/javascript/reference/global_objects') diff --git a/files/ko/web/javascript/reference/global_objects/function/index.html b/files/ko/web/javascript/reference/global_objects/function/index.html index d319279bb2..fbb6792960 100644 --- a/files/ko/web/javascript/reference/global_objects/function/index.html +++ b/files/ko/web/javascript/reference/global_objects/function/index.html @@ -9,7 +9,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Function ---
Function 생성자는 새 Function 객체를 만듭니다. 이 생성자를 직접 호출하여 동적으로 함수를 생성할 수도 있으나, 보안 문제 및 {{jsxref("eval")}}과 유사한(그러나 훨씬 덜 심각한) 성능 문제가 발생할 수 있습니다. 하지만 eval과 달리, Function 생성자는 전역 범위로 한정된 함수만 생성합니다.
Function 생성자는 새 Function 객체를 만듭니다. 이 생성자를 직접 호출하여 동적으로 함수를 생성할 수도 있으나, 보안 문제 및 {{jsxref("eval")}}과 유사한(그러나 훨씬 덜 심각한) 성능 문제가 발생할 수 있습니다. 하지만 eval과 달리, Function 생성자는 전역 범위로 한정된 함수만 생성합니다.
The Intl.Locale constructor is a standard built-in property of the Intl object that represents a Unicode locale identifier.
The Intl.Locale constructor is a standard built-in property of the Intl object that represents a Unicode locale identifier.
{{EmbedInteractiveExample("pages/js/intl-locale.html")}}
diff --git a/files/ko/web/javascript/reference/global_objects/intl/locale/language/index.html b/files/ko/web/javascript/reference/global_objects/intl/locale/language/index.html index a950eb1b71..1941356e98 100644 --- a/files/ko/web/javascript/reference/global_objects/intl/locale/language/index.html +++ b/files/ko/web/javascript/reference/global_objects/intl/locale/language/index.html @@ -7,7 +7,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Intl/Locale/language -Intl.Locale.prototype.language 속성은 locale과 관련된 언어를 반환하는 접근자 속성입니다.
Intl.Locale.prototype.language 속성은 locale과 관련된 언어를 반환하는 접근자 속성입니다.
JSON.parse() 메서드는 JSON 문자열의 구문을 분석하고, 그 결과에서 JavaScript 값이나 객체를 생성합니다. 선택적으로, reviver 함수를 인수로 전달할 경우, 결과를 반환하기 전에 변형할 수 있습니다.
JSON.parse() 메서드는 JSON 문자열의 구문을 분석하고, 그 결과에서 JavaScript 값이나 객체를 생성합니다. 선택적으로, reviver 함수를 인수로 전달할 경우, 결과를 반환하기 전에 변형할 수 있습니다.
JSON.stringify() 메서드는 JavaScript 값이나 객체를 JSON 문자열로 변환합니다. 선택적으로, replacer를 함수로 전달할 경우 변환 전 값을 변형할 수 있고, 배열로 전달할 경우 지정한 속성만 결과에 포함합니다.
JSON.stringify() 메서드는 JavaScript 값이나 객체를 JSON 문자열로 변환합니다. 선택적으로, replacer를 함수로 전달할 경우 변환 전 값을 변형할 수 있고, 배열로 전달할 경우 지정한 속성만 결과에 포함합니다.
Math.cbrt() 함수는 주어진 수의 세제곱근을 반환합니다. 즉,
Math.cbrt() 함수는 주어진 수의 세제곱근을 반환합니다. 즉,
Math는 수학적인 상수와 함수를 위한 속성과 메서드를 가진 내장 객체입니다. 함수 객체가 아닙니다.
Math는 수학적인 상수와 함수를 위한 속성과 메서드를 가진 내장 객체입니다. 함수 객체가 아닙니다.
Math는 {{jsxref("Number")}} 자료형만 지원하며 {{jsxref("BigInt")}}와는 사용할 수 없습니다.
Number.isNaN() 메서드는 주어진 값이 {{jsxref("NaN")}}인지 판별합니다. 기존부터 존재한 전역 {{jsxref("isNaN", "isNaN()")}} 함수의 더 엄격한 버전입니다.
Number.isNaN() 메서드는 주어진 값이 {{jsxref("NaN")}}인지 판별합니다. 기존부터 존재한 전역 {{jsxref("isNaN", "isNaN()")}} 함수의 더 엄격한 버전입니다.
Object.freeze() 메서드는 객체를 동결합니다. 동결된 객체는 더 이상 변경될 수 없습니다. 즉, 동결된 객체는 새로운 속성을 추가하거나 존재하는 속성을 제거하는 것을 방지하며 존재하는 속성의 불변성, 설정 가능성(configurability), 작성 가능성이 변경되는 것을 방지하고, 존재하는 속성의 값이 변경되는 것도 방지합니다. 또한, 동결 객체는 그 프로토타입이 변경되는것도 방지합니다. freeze()는 전달된 동일한 객체를 반환합니다.
Object.freeze() 메서드는 객체를 동결합니다. 동결된 객체는 더 이상 변경될 수 없습니다. 즉, 동결된 객체는 새로운 속성을 추가하거나 존재하는 속성을 제거하는 것을 방지하며 존재하는 속성의 불변성, 설정 가능성(configurability), 작성 가능성이 변경되는 것을 방지하고, 존재하는 속성의 값이 변경되는 것도 방지합니다. 또한, 동결 객체는 그 프로토타입이 변경되는것도 방지합니다. freeze()는 전달된 동일한 객체를 반환합니다.
Object.keys() 메소드는 주어진 객체의 속성 이름들을 일반적인 반복문과
+
+Object.keys() 메소드는 주어진 객체의 속성 이름들을 일반적인 반복문과
+
동일한 순서로 순회되는 열거할 수 있는 배열로 반환합니다.
-
setTimeout과 함께 Promise.race 사용 예var p1 = new Promise(function(resolve, reject) {
- setTimeout(() => resolve('하나'), 500);
-});
-var p2 = new Promise(function(resolve, reject) {
- setTimeout(() => resolve('둘'), 100);
-});
-
-Promise.race([p1, p2])
-.then(function(value) {
- console.log(value); // "둘"
- // 둘 다 이행하지만 p2가 더 빠르므로
-});
-
-var p3 = new Promise(function(resolve, reject) {
- setTimeout(() => resolve('셋'), 100);
-});
-var p4 = new Promise(function(resolve, reject) {
- setTimeout(() => reject(new Error('넷')), 500);
-});
-
-Promise.race([p3, p4])
-.then(function(value) {
- console.log(value); // "셋"
- // p3이 더 빠르므로 이행함
-}, function(reason) {
- // 실행되지 않음
-});
-
-var p5 = new Promise(function(resolve, reject) {
- setTimeout(() => resolve('다섯'), 500);
-});
-var p6 = new Promise(function(resolve, reject) {
- setTimeout(() => reject(new Error('여섯')), 100);
-});
-
-Promise.race([p5, p6])
-.then(function(value) {
- // 실행되지 않음
-}, function(error) {
- console.log(error.message); // "여섯"
- // p6이 더 빠르므로 거부함
-});
+var p1 = new Promise(function(resolve, reject) {
+ setTimeout(() => resolve('하나'), 500);
+});
+var p2 = new Promise(function(resolve, reject) {
+ setTimeout(() => resolve('둘'), 100);
+});
+
+Promise.race([p1, p2])
+.then(function(value) {
+ console.log(value); // "둘"
+ // 둘 다 이행하지만 p2가 더 빠르므로
+});
+
+var p3 = new Promise(function(resolve, reject) {
+ setTimeout(() => resolve('셋'), 100);
+});
+var p4 = new Promise(function(resolve, reject) {
+ setTimeout(() => reject(new Error('넷')), 500);
+});
+
+Promise.race([p3, p4])
+.then(function(value) {
+ console.log(value); // "셋"
+ // p3이 더 빠르므로 이행함
+}, function(reason) {
+ // 실행되지 않음
+});
+
+var p5 = new Promise(function(resolve, reject) {
+ setTimeout(() => resolve('다섯'), 500);
+});
+var p6 = new Promise(function(resolve, reject) {
+ setTimeout(() => reject(new Error('여섯')), 100);
+});
+
+Promise.race([p5, p6])
+.then(function(value) {
+ // 실행되지 않음
+}, function(error) {
+ console.log(error.message); // "여섯"
+ // p6이 더 빠르므로 거부함
+});
Reflect.isExtensible() 정적 메서드는 객체의 확장 가능 여부, 즉 속성을 추가할 수 있는지 판별합니다. {{jsxref("Object.isExtensible()")}}과 유사하지만 {{anch("Object.isExtensible()과의 차이", "차이점")}}도 있습니다.
Reflect.isExtensible() 정적 메서드는 객체의 확장 가능 여부, 즉 속성을 추가할 수 있는지 판별합니다. {{jsxref("Object.isExtensible()")}}과 유사하지만 {{anch("Object.isExtensible()과의 차이", "차이점")}}도 있습니다.
Reflect.preventExtensions() 정적 메서드는 새로운 속성을 객체에 추가하지 못하도록 완전히 막습니다. 즉, 미래의 객체 확장을 막습니다. {{jsxref("Object.preventExtensions()")}}와 유사하지만 {{anch("Object.preventExtensions()와의 차이점", "차이점")}}도 있습니다.
Reflect.preventExtensions() 정적 메서드는 새로운 속성을 객체에 추가하지 못하도록 완전히 막습니다. 즉, 미래의 객체 확장을 막습니다. {{jsxref("Object.preventExtensions()")}}와 유사하지만 {{anch("Object.preventExtensions()와의 차이점", "차이점")}}도 있습니다.
Reflect.setPrototypeOf() 정적 메서드는 주어진 객체의 프로토타입(내부 [[Prototype]] 속성)을 다른 객체나 {{jsxref("null")}}로 바꿉니다. 반환 값을 제외하면 {{jsxref("Object.setPrototypeOf()")}} 메서드와 같습니다.
Reflect.setPrototypeOf() 정적 메서드는 주어진 객체의 프로토타입(내부 [[Prototype]] 속성)을 다른 객체나 {{jsxref("null")}}로 바꿉니다. 반환 값을 제외하면 {{jsxref("Object.setPrototypeOf()")}} 메서드와 같습니다.
ECMAScript 2015 이후, 문자열 리터럴은 소위 템플릿 리터럴이 될 수 있습니다.
-`hello world` `hello! world!` `hello ${who}` tag `<a>${who}</a>`
+`hello world` `hello! world!` `hello ${who}` tag `<a>${who}</a>`
startsWith() 메소드는 어떤 문자열이 특정 문자로 시작하는지 확인하여 결과를 true 혹은 false로 반환합니다.
startsWith() 메소드는 어떤 문자열이 특정 문자로 시작하는지 확인하여 결과를 true 혹은 false로 반환합니다.