Math.LN10
Baseline
Widely available
This feature is well established and works across many devices and browser versions. Itโs been available across browsers since โจ2015๋ 7์โฉ.
Math.LN10
์์ฑ์ 10์ ์์ฐ๋ก๊ทธ ๊ฐ, ์ฝ 2.302์ ๊ฐ์ ๊ฐ์ง๋๋ค.
์๋ํด ๋ณด๊ธฐ
function getNatLog10() {
return Math.LN10;
}
console.log(getNatLog10());
// Expected output: 2.302585092994046
Property attributes of Math.LN10 | |
---|---|
์ฐ๊ธฐ ๊ฐ๋ฅ | ๋ถ๊ฐ๋ฅ |
์ด๊ฑฐ ๊ฐ๋ฅ | ๋ถ๊ฐ๋ฅ |
์ค์ ๊ฐ๋ฅ | ๋ถ๊ฐ๋ฅ |
์ค๋ช
LN10
์ Math
์ ์ ์ ์์ฑ์ด๋ฏ๋ก, ์ฌ์ฉ์๊ฐ ์์ฑํ Math
๊ฐ์ฒด์ ์์ฑ์ผ๋ก ์ ๊ทผํ ์ ์๊ณ ํญ์ Math.LN10
์ ์ฌ์ฉํด์ผ ํฉ๋๋ค. (Math
๋ ์์ฑ์๊ฐ ์๋๋๋ค)
์์
Math.LN10
์ฌ์ฉํ๊ธฐ
๋ค์ ํจ์๋ 10์ ์์ฐ ๋ก๊ทธ ๊ฐ์ ๋ฐํํฉ๋๋ค.
js
function getNatLog10() {
return Math.LN10;
}
getNatLog10(); // 2.302585092994046
๋ช ์ธ
Specification |
---|
ECMAScriptยฎ 2026 Language Specification # sec-math.ln10 |
๋ธ๋ผ์ฐ์ ํธํ์ฑ
Loadingโฆ