JS Math 프로퍼티 (Math.PI)

2021. 7. 30. 22:24
728x90

01 Math.PI() 프로퍼티

PI 값(π ≈ 3.141592653589793)을 반환한다.

 

 

Math.PI()

<!DOCTYPE html>
<html>
<head>
    <meta charset='utf-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge'>
    <title>math 메소드</title>
    <meta name='viewport' content='width=device-width, initial-scale=1'>
    <script>
        var pi = Math.PI;
        document.write(`pi = ${pi}`);
    </script>
</head>
<body>
</body>
</html>
728x90

BELATED ARTICLES

more