
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
Found 10483 Articles for Web Development

60 Views
The find() function of TypedArray accepts a string value representing the name of a function, tests whether the elements in the array passes the test implemented by the provided function, if so, returns the index of the first element which passes the test else, returns -1.SyntaxIts Syntax is as followstypedArray.findIndex(function_name)Example Live Demo JavaScript Array every Method var int32View = new Int32Array([21, 19, 65, 21, 14, 66, 87, 55 ]); document.write("Contents of the typed array: "+int32View); document.write(""); function testResult(element, index, array) { ... Read More

48 Views
The find() function of TypedArray accepts a string value representing the name of a function, tests whether the elements in the array passes the test implemented by the provided function, if so, returns the first element which passes the test else, returns undefined.SyntaxIts Syntax is as followstypedArray.find(function_name)Example Live Demo JavaScript Array every Method var int32View = new Int32Array([21, 19, 65, 21, 14, 66, 87, 55 ]); document.write("Contents of the typed array: "+int32View); document.write(""); function testResult(element, index, array) { var ... Read More

63 Views
The filter() function of TypedArray accepts a string value representing the name of a function, tests whether all the elements in an array passes the test implemented by the provided function, creates a new array with all elements that pass the test.SyntaxIts Syntax is as followstypedArray.filter(function_name)Example Live Demo JavaScript Array every Method var int32View = new Int32Array([64, 89, 65, 21, 14, 66, 87, 55 ]); document.write("Contents of the typed array: "+int32View); document.write(""); function testResult(element, index, array) { var ele ... Read More

168 Views
The Number.EPSILON property of the Number object represents the difference between 1 and the smallest floating point number greater than 1.SyntaxIts Syntax is as followsNumber.EPSILONExample Live Demo JavaScript Example var result = Number.EPSILON; document.write("Value of the epsilon : " + result); OutputValue of the epsilon: 2.220446049250313e-16

63 Views
The tanh() function of the Math object accepts an angle (in radians) and returns its hyperbolic tangent value.SyntaxIts Syntax is as followsMath.tanh(90)Example Live Demo JavaScript Example var result = Math.tanh(90); document.write("Hyperbolic tangent value of the given angle: "+result); OutputHyperbolic tangent value of the given angle: 1

79 Views
The sinh() function of the Math object accepts an angle (in radians) and returns its hyperbolic sine value.SyntaxIts Syntax is as followsMath.sinh(90)Example Live Demo JavaScript Example var result = Math.sinh(90); document.write("Hyperbolic sine value of the given angle: "+result); OutputHyperbolic sine value of the given angle: 6.102016471589204e+38

63 Views
The cosh() function of the Math object accepts an angle (in radians) and returns its hyperbolic cosine value.SyntaxIts Syntax is as followsMath.cosh(90)Example Live Demo JavaScript Example var result = Math.cosh(90); document.write("Hyperbolic cosine value of the given angle: "+result); OutputHyperbolic cosine value of the given angle: 6.102016471589204e+38

125 Views
The trunc() function of the Math object accepts a number and returns its integral point (excluding the fractional part). If the given number itself is an integer this function returns the same.SyntaxIts Syntax is as followsMath.trunc();Example Live Demo JavaScript Example var result = Math.trunc(58.745); document.write("Integral part of the given number: "+result); OutputIntegral part of the given number: 58

113 Views
The sqrt() function of the Math object accepts a number and returns the square root value of the given number.SyntaxIts Syntax is as followsMath.sqrt();Example Live Demo JavaScript Example var result = Math.sqrt(169); document.write("Square root value of the given number: "+result); OutputSquare root value of the given number: 13

114 Views
The sign() function of the Math object accepts an integer number and returns its sign.(positive, negative)If the given number is a positive integer then, this function returns +1.And, if the given number is a negative integer then, this function returns -1.SyntaxIts Syntax is as followsMath.sign();Example Live Demo JavaScript Example var result = Math.sign(-128); document.write("Result: "+result); OutputResult: -1