
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 6710 Articles for Javascript

79 Views
This function of the Math object returns the value of ex – 1, where x and e are the base and exponents of natural algorithms.SyntaxIts Syntax is as followsMath.expm1(6);Example Live Demo JavaScript Example var result = Math.expm1(6); document.write("Result: "+result); OutputResult: 402.4287934927351

99 Views
The clz32() function of the Math object returns the number of zero bits in the starting of the 32-bit binary representation of a number.SyntaxIts Syntax is as followsMath.clz32(31)Example Live Demo JavaScript Example var result = Math.clz32(31); document.write("Result: "+result); OutputResult: 27

90 Views
The cbrt() function of the Math object accepts a number and returns its cube root.SyntaxIts Syntax is as followsMath.cbrt(729)Example JavaScript Example var result = Math.cbrt(729)); document.write(""); document.write("Cube root of the given number: "+result); OutputCube root of the given number: 9

76 Views
The atanh() function of the Math object accepts a number and returns its hyperbolic arc arctangent value in radians. To convert the resultant value into degrees, multiply it with 180 and divide the result by 3.14159 (pi value).SyntaxIts Syntax is as followsMath.atanh(0.5)Example Live Demo JavaScript Example var result = Math.atanh(0.5); document.write("arctangent value: "+result); document.write(""); document.write("hyperbolic arctangent value in degrees: "+result*180/Math.PI); Outputarctangent value: 0.5493061443340548 arctangent value in degrees: 31.47292373094538

67 Views
The asinh() function of the Math object accepts a number and returns its hyperbolic arc sine value in radians. To convert the resultant value into degrees, multiply it with 180 and divide the result by 3.14159 (pi value).SyntaxIts Syntax is as followsMath.asinh(0.5)Example Live Demo JavaScript Example var result = Math.asinh(90); document.write("Hyperbolic arcsine value: "+result); document.write(""); document.write("Hyperbolic arcsine value in degrees: "+result*180/Math.PI); OutputHyperbolic arcsine value: 5.192987713658941 Hyperbolic arcsine value in degrees: 297.53627905594817

66 Views
The acosh() function of the Math object accepts a number and returns its hyperbolic arc cosine value in radians. To convert the resultant value into degrees, multiply it with 180 and divide the result by 3.14159 (pi value).SyntaxIts Syntax is as followsMath.acosh(0.5)Example Live Demo JavaScript Example var result = Math.acosh(90); document.write("Hyperbolic arccosine value: "+result); document.write(""); document.write("Hyperbolic arccosine value in degrees: "+result*180/Math.PI); OutputHyperbolic arccosine value: 5.192925985263684 Hyperbolic arccosine value in degrees: 297.5327422794238

54 Views
The keys() function of Map object is similar to entries but, it returns an iterator object containing the keys of a map object.SyntaxIts Syntax is as followsMap.keys()Example Live Demo JavaScript Example var mapVar = new Map(); mapVar.set('1', 'Java'); mapVar.set('2', 'JavaFX'); mapVar.set('3', 'HBase'); mapVar.set('4', 'Neo4j'); var it = mapVar.keys(); for(i=0; i

270 Views
The has() function of Map object accepts a key in string format and returns a boolean value, if specified key exists it returns true else returns false.SyntaxIts Syntax is as followsmapVar.has()Example Live Demo JavaScript Example var mapVar = new Map(); mapVar.set('1', 'Java'); mapVar.set('2', 'JavaFX'); mapVar.set('3', 'HBase'); mapVar.set('4', 'Neo4j'); document.write(mapVar.has('3')); OutputtrueExample Live Demo JavaScript Example var mapVar = new Map(); mapVar.set('1', 'Java'); ... Read More

81 Views
The get() function of Map object accepts a key in string format and returns its respective value.SyntaxIts Syntax is as followsmapVar.get()Example Live Demo JavaScript Example var mapVar = new Map(); mapVar.set('1', 'Java'); mapVar.set('2', 'JavaFX'); mapVar.set('3', 'HBase'); mapVar.set('4', 'Neo4j'); document.write(mapVar.get('3')); OutputHBase

95 Views
The forEach() function of Map object returns an iterator of the corresponding Map object and using this you can retrieve the key Value pairs of the map.SyntaxIts Syntax is as followsmapVar.forEach()Example Live Demo JavaScript Example var mapVar = new Map(); mapVar.set('1', 'Java'); mapVar.set('2', 'JavaFX'); mapVar.set('3', 'HBase'); mapVar.set('4', 'Neo4j'); function show(values) { document.write(values); document.write(""); } mapVar.forEach(show); OutputJava JavaFX HBase Neo4j