From 86792571ae1a21a1e4bf526747d6dd1c2636d167 Mon Sep 17 00:00:00 2001 From: alattalatta Date: Sat, 14 Aug 2021 15:57:42 +0900 Subject: Clean up JS reference documents (#1818) * Clean up JavaScript references HTML code - Remove inline styles - Remove elements - Remove title attribute * Remove sup/sub from JavaScript reference * Remove name attrs from JavaScript reference * Remove legacy browser compat elements * Remove duplicate browser-compat key --- .../ko/web/javascript/reference/global_objects/math/exp/index.html | 4 ++-- files/ko/web/javascript/reference/global_objects/math/index.html | 6 +++--- .../ko/web/javascript/reference/global_objects/math/log2/index.html | 4 ++-- .../ko/web/javascript/reference/global_objects/math/pow/index.html | 4 ++-- .../web/javascript/reference/global_objects/math/random/index.html | 2 +- .../ko/web/javascript/reference/global_objects/math/sign/index.html | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) (limited to 'files/ko/web/javascript/reference/global_objects/math') diff --git a/files/ko/web/javascript/reference/global_objects/math/exp/index.html b/files/ko/web/javascript/reference/global_objects/math/exp/index.html index 567b8d68ab..3582752142 100644 --- a/files/ko/web/javascript/reference/global_objects/math/exp/index.html +++ b/files/ko/web/javascript/reference/global_objects/math/exp/index.html @@ -5,7 +5,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/exp ---
{{JSRef}}
-

 Math.exp()함수는 x를 인수로 하는 ex 값을 반환합니다. 그리고 e는 {{jsxref("Math.E", "오일러 상수(또는 네이피어 상수)", "", 1)}}는 자연 로그의 밑입니다.

+

 Math.exp()함수는 x를 인수로 하는 e^x 값을 반환합니다. 그리고 e는 {{jsxref("Math.E", "오일러 상수(또는 네이피어 상수)", "", 1)}}는 자연 로그의 밑입니다.

{{EmbedInteractiveExample("pages/js/math-exp.html")}}
@@ -24,7 +24,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/exp

반환 값

-

e는 {{jsxref("Math.E", "오일러 상수", "", 1)}}이고 x는 인수인 ex

+

e는 {{jsxref("Math.E", "오일러 상수", "", 1)}}이고 x는 인수인 e^x

Description

diff --git a/files/ko/web/javascript/reference/global_objects/math/index.html b/files/ko/web/javascript/reference/global_objects/math/index.html index 1bc5902a01..498d413491 100644 --- a/files/ko/web/javascript/reference/global_objects/math/index.html +++ b/files/ko/web/javascript/reference/global_objects/math/index.html @@ -82,7 +82,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math
{{jsxref("Global_Objects/Math/cosh", "Math.cosh(x)")}} 
숫자의 쌍곡코사인 값을 반환합니다.
{{jsxref("Global_Objects/Math/exp", "Math.exp(x)")}}
-
Ex 를 반환합니다. x는 인수이며 E 는 오일러 상수(2.718...) 또는 자연로그의 밑입니다.
+
E^x 를 반환합니다. x는 인수이며 E 는 오일러 상수(2.718...) 또는 자연로그의 밑입니다.
{{jsxref("Global_Objects/Math/expm1", "Math.expm1(x)")}} 
exp(x)에서 1을 뺀 값을 반환합니다.
{{jsxref("Global_Objects/Math/floor", "Math.floor(x)")}}
@@ -94,9 +94,9 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math
{{jsxref("Global_Objects/Math/imul", "Math.imul(x, y)")}} 
두 32비트 정수의 곱을 반환합니다.
{{jsxref("Global_Objects/Math/log", "Math.log(x)")}}
-
숫자의 자연로그(loge 또는 ln) 값을 반환합니다.
+
숫자의 자연로그(e를 밑으로 하는 로그, 즉 ln) 값을 반환합니다.
{{jsxref("Global_Objects/Math/log1p", "Math.log1p(x)")}} 
-
숫자 x에 대해 1 + x의 자연로그(loge 또는 ln) 값을 반환합니다.
+
숫자 x에 대해 1 + x의 자연로그(e를 밑으로 하는 로그, ln) 값을 반환합니다.
{{jsxref("Global_Objects/Math/log10", "Math.log10(x)")}} 
숫자의 밑이 10인 로그를 반환합니다.
{{jsxref("Global_Objects/Math/log2", "Math.log2(x)")}} 
diff --git a/files/ko/web/javascript/reference/global_objects/math/log2/index.html b/files/ko/web/javascript/reference/global_objects/math/log2/index.html index 86d4f9f3db..12534d1c94 100644 --- a/files/ko/web/javascript/reference/global_objects/math/log2/index.html +++ b/files/ko/web/javascript/reference/global_objects/math/log2/index.html @@ -61,7 +61,7 @@ browser-compat: javascript.builtins.Math.log2

반환 값

- 주어진 숫자는 log2(숫자)로 계산합니다. 만약 숫자가 + 주어진 숫자를 진수로, 2를 밑으로 하는 로그 계산 결과입니다. 만약 숫자가 음수라면 {{jsxref("NaN")}}를 반환합니다.

@@ -81,7 +81,7 @@ browser-compat: javascript.builtins.Math.log2

이 함수는 Math.log(x) / Math.log(2)와 같습니다.

-

따라서 log2(e)는 {{jsxref("Math.LOG2E")}}와 같습니다. 

+

따라서 log2(e)는 {{jsxref("Math.LOG2E")}}와 같습니다. 

그리고 위 함수는 1 / {{jsxref("Math.LN2")}}과 같습니다.

diff --git a/files/ko/web/javascript/reference/global_objects/math/pow/index.html b/files/ko/web/javascript/reference/global_objects/math/pow/index.html index 55ea3aa26a..78d729e70e 100644 --- a/files/ko/web/javascript/reference/global_objects/math/pow/index.html +++ b/files/ko/web/javascript/reference/global_objects/math/pow/index.html @@ -11,7 +11,7 @@ browser-compat: javascript.builtins.Math.pow
{{JSRef}}
-Math.pow()함수는baseexponent처럼 +Math.pow()함수는base^exponent처럼 baseexponent를 제곱한 값을 반환합니다.
{{EmbedInteractiveExample("pages/js/math-pow.html")}}
@@ -44,7 +44,7 @@ browser-compat: javascript.builtins.Math.pow

Math.pow()함수는 baseexponent - 곱, 즉 baseexponent를 반환합니다. + 곱, 즉 base^exponent를 반환합니다. baseexponent는 10진수입니다.

diff --git a/files/ko/web/javascript/reference/global_objects/math/random/index.html b/files/ko/web/javascript/reference/global_objects/math/random/index.html index 2aead8d88a..d030685609 100644 --- a/files/ko/web/javascript/reference/global_objects/math/random/index.html +++ b/files/ko/web/javascript/reference/global_objects/math/random/index.html @@ -24,7 +24,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/random

Math.random() 사용

-

JavaScript의 수(number)는 가까운 짝수로 반올림되는(round-to-nearest-even behavior) IEEE 754 부동소수점 실수이므로, 아래 함수들(Math.random() 자체에 대한 사항은 제외)에 명시된 범위는 정확하지 않음을 유의하라. 지나치게 큰 범위(253 이상)를 선택할 경우, 매우 드문 경우 원래 포함되어서는 안 될 최댓값이 포함되는 경우가 있다.

+

JavaScript의 수(number)는 가까운 짝수로 반올림되는(round-to-nearest-even behavior) IEEE 754 부동소수점 실수이므로, 아래 함수들(Math.random() 자체에 대한 사항은 제외)에 명시된 범위는 정확하지 않음을 유의하라. 지나치게 큰 범위(2^53 이상)를 선택할 경우, 매우 드문 경우 원래 포함되어서는 안 될 최댓값이 포함되는 경우가 있다.

0 이상 1 미만의 난수 생성하기

diff --git a/files/ko/web/javascript/reference/global_objects/math/sign/index.html b/files/ko/web/javascript/reference/global_objects/math/sign/index.html index 1a6697e9d8..0d62073b89 100644 --- a/files/ko/web/javascript/reference/global_objects/math/sign/index.html +++ b/files/ko/web/javascript/reference/global_objects/math/sign/index.html @@ -25,7 +25,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Math/sign

반환 값

-

주어진 인수의 부호를 나타내는 수치. 인수가 양수, 음수, 양수인 영 또는 음수인 영이면, 이 함수는 1, -1, 0, -0을 각각 반환합니다. 그렇지 않으면, {{jsxref("NaN")}} 이 반환됩니다.

+

주어진 인수의 부호를 나타내는 수치. 인수가 양수, 음수, 양수인 영 또는 음수인 영이면, 이 함수는 1, -1, 0, -0을 각각 반환합니다. 그렇지 않으면, {{jsxref("NaN")}} 이 반환됩니다.

설명

-- cgit v1.2.3-54-g00ecf