Samual Sam has Published 2492 Articles

Math.atanh() function in JavaScript

Samual Sam

Samual Sam

Updated on 25-Jun-2020 12:25:19

23 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   ... Read More

Math.cbrt() function in JavaScript

Samual Sam

Samual Sam

Updated on 25-Jun-2020 12:24:27

43 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

Math.clz32() function in JavaScript

Samual Sam

Samual Sam

Updated on 25-Jun-2020 12:23:40

51 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

Math.expm1() function in JavaScript

Samual Sam

Samual Sam

Updated on 25-Jun-2020 12:22:53

40 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

Fade In Up Big Animation Effect with CSS

Samual Sam

Samual Sam

Updated on 25-Jun-2020 12:21:08

251 Views

To implement Fade In Up Big Animation Effect on an image with CSS, you can try to run the following code:ExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);             background-repeat: ... Read More

Subtract minutes from current time using Calendar.add() method in Java

Samual Sam

Samual Sam

Updated on 25-Jun-2020 12:16:40

2K+ Views

Import the following package for Calendar class in Java.import java.util.Calendar;Firstly, create a Calendar object and display the current date and time.Calendar calendar = Calendar.getInstance(); System.out.println("Current Date and Time = " + calendar.getTime());Now, let us decrement the minutes using the calendar.add() method and Calendar.MINUTE constant. Set a negative value since you ... Read More

Map.clear() function in JavaScript

Samual Sam

Samual Sam

Updated on 25-Jun-2020 12:15:37

84 Views

The clear() function of Map object removes all elements from the current Map object.SyntaxIts Syntax is as followsmapVar.clear()Example Live Demo    JavaScript Example           var mapVar = new Map();       mapVar.set('1', 'Java');       mapVar.set('2', 'JavaFX');       mapVar.set('3', 'HBase'); ... Read More

Map.entries() function in JavaScript

Samual Sam

Samual Sam

Updated on 25-Jun-2020 12:13:29

58 Views

The entries() 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.entries()Example Live Demo    JavaScript Example           var mapVar = new Map();     ... Read More

Map.get() function in JavaScript

Samual Sam

Samual Sam

Updated on 25-Jun-2020 12:12:01

40 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');     ... Read More

Map.keys() function in JavaScript

Samual Sam

Samual Sam

Updated on 25-Jun-2020 12:09:19

29 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');   ... Read More

Advertisements