๋‚ด์žฅ๊ฐ์ฒดMath

//๋‚ด์žฅ๊ฐ์ฒด Math console.log("Math.PI", Math.PI); console.log("Math.random()",Math.random());//๊ฐ์ฒด์— ์†Œ์†๋˜์–ด ์žˆ์„๋•Œ๋Š” ๋ฉ”์†Œ๋“œ, ๋ฉ”์†Œ๋“œ๋Š” ๋ณธ์งˆ์ ์œผ๋กœ ํ•จ์ˆ˜ console.log("Math.floor(2.6)",Math.floor(2.6)); //๋‚˜๋งŒ์˜ ๊ฐ์ฒด ๋งŒ๋“ค์–ด๋ณด๊ธฐ //๊ฐ์ฒด๋Š” ๊ทธ๋ฃนํ•‘ํ•ด์„œ ์ด๋ฆ„์„ ๋ถ™์ธ๊ฒƒ์ด๋‹ค let MyMath = { PI:Math.PI, random:function(){ return Math.random(); }, floor:function(val){ return Math.floor(val); } } console.log("MyMath.PI",MyMath.PI); console.log("MyMath.random",MyMath..
becky(์ง€์€)
'๋‚ด์žฅ๊ฐ์ฒดMath' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก