কম্পিউটার

জাভাস্ক্রিপ্টে Math.sqrt() ফাংশন


ম্যাথ অবজেক্টের sqrt() ফাংশন একটি সংখ্যা গ্রহণ করে এবং প্রদত্ত সংখ্যার বর্গমূল মান প্রদান করে।

সিনট্যাক্স

এর সিনট্যাক্স নিম্নরূপ

Math.sqrt();

উদাহরণ

<html>
<head>
   <title>JavaScript Example</title>
</head>
<body>
   <script type="text/javascript">
      var result = Math.sqrt(169);
      document.write("Square root value of the given number: "+result);
   </script>
</body>
</html>

আউটপুট

Square root value of the given number: 13

  1. জাভাস্ক্রিপ্টে Math.tan() ফাংশন

  2. জাভাস্ক্রিপ্টে Math.sinh() ফাংশন

  3. জাভাস্ক্রিপ্টে Math.sin() ফাংশন

  4. জাভাস্ক্রিপ্ট নম্বর ফাংশন