코드:
결과보기 »
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <title>JavaScript Math Method</title> </head> <body> <h1>Math.sin() 메소드</h1> <script> document.write(Math.sin(0) + "<br>"); // 0 document.write(Math.sin(Math.PI / 2)); // 1 </script> </body> </html>