Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>JavaScript Trigonometric Operations</title> </head> <body> <script> document.write(Math.sin(0 * Math.PI / 180) + "<br>"); // Prints: 0 document.write(Math.sin(90 * Math.PI / 180) + "<br>"); // Prints: 1 document.write(Math.cos(0 * Math.PI / 180) + "<br>"); // Prints: 1 document.write(Math.cos(180 * Math.PI / 180) + "<br>"); // Prints: -1 document.write(Math.tan(0 * Math.PI / 180)); // Prints: 0 </script> </body> </html>