
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Math hypot Function in JavaScript
The hypot() function of the Math object accepts numbers and returns the square root of the sum of squares of the given numbers.
Syntax
Its Syntax is as follows
Math.hypot(12, 58, 66);
Example
<html> <head> <title>JavaScript Example</title> </head> <body> <script type="text/javascript"> var result = Math.hypot(12, 58, 66); document.write("hypot value: "+result); </script> </body> </html>
Output
hypot value: 88.67919710958147
Advertisements