Samual Sam has Published 2310 Articles

Math.cbrt() function in JavaScript

Samual Sam

Samual Sam

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

87 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

98 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

78 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

132 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

111 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

78 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

52 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

JSON.parse() function in JavaScript

Samual Sam

Samual Sam

Updated on 25-Jun-2020 12:03:33

196 Views

The JSON.parse() function accepts a JSON string, and constructs an object based on the given text and, returns it.SyntaxIts Syntax is as followsJson.parse();Example Live Demo    JavaScript Example           var jsonSample = '{"Tutorial": "Java", "Version":8 }';       jsonObj = JSON.parse(jsonSample);     ... Read More

Advertisements