Samual Sam has Published 2492 Articles

Set.values() function in JavaScript

Samual Sam

Samual Sam

Updated on 25-Jun-2020 13:00:59

742 Views

The values() function of the Set returns an iterator object which holds the values of the current Set object.The next() method returns the next element in the iterator object.SyntaxIts Syntax is as followssetObj.values()Example Live Demo    JavaScript Example           const setObj = new Set(); ... Read More

parseInt() function in JavaScript

Samual Sam

Samual Sam

Updated on 25-Jun-2020 12:56:34

435 Views

The parseInt() function accepts two parameters one is a string representing a number and another is a number representing the radix and returns an integer of the given radix.SyntaxIts Syntax is as followsnum.parseInt('4524', 8);Example Live Demo    JavaScript Example           var result = parseInt('4524', ... Read More

Set.add() function in JavaScript

Samual Sam

Samual Sam

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

170 Views

The add() function of the Set object accepts a value and adds/appends it to the current Set object.SyntaxIts Syntax is as followssetObj.add()Example Live Demo    JavaScript Example           const setObj = new Set();       setObj.add('Java');       setObj.add('JavaFX');       ... Read More

Set.forEach() function in JavaScript

Samual Sam

Samual Sam

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

805 Views

The forEach() function of the Set object accepts the name of a particular function and runs that function for every value in the current set. For Example, if you have written a function to print a value, if you use forEach() function it prints the value of every element in ... Read More

Number.isSafeInteger() function in JavaScript

Samual Sam

Samual Sam

Updated on 25-Jun-2020 12:49:17

45 Views

The isSafeInteger() function of the Number object accepts a number and determines if it is safe integer. If the given number is a safe integer it returns true else, it returns false.SyntaxIts Syntax is as followsNumber.isSafeInteger(90071991);Example Live Demo    JavaScript Example           var result ... Read More

Number.parseInt() function in JavaScript

Samual Sam

Samual Sam

Updated on 25-Jun-2020 12:48:02

38 Views

The parseInt() function of the Number object accepts a string, parses and returns an integer of the specified radix or base.SyntaxIts Syntax is as followsNumber.parseInt('0xF', 16);Example Live Demo    JavaScript Example           var result = Number.parseInt('0xF', 16);       document.write(result);     Output15

Math.tanh() function in JavaScript

Samual Sam

Samual Sam

Updated on 25-Jun-2020 12:44:07

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

Number.MAX_SAFE_INTEGER Property in JavaScript

Samual Sam

Samual Sam

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

93 Views

The Number.MAX_SAFE_INTEGER property of the Number object represents the maximum safe integer in JavaScript (i.e. 253 - 1).SyntaxIts Syntax is as followsNumber.MAX_SAFE_INTEGERExample Live Demo    JavaScript Example           var result = Number.MAX_SAFE_INTEGER;       document.write("Maximum safe integer: " + result);     OutputMaximum safe integer: 9007199254740991

Number.MIN_SAFE_INTEGER Property in JavaScript

Samual Sam

Samual Sam

Updated on 25-Jun-2020 12:42:30

67 Views

The Number.MIN_SAFE_INTEGER property of the Number object represents the minimum safe integer in JavaScript (i.e. –(253 – 1)).SyntaxIts Syntax is as followsNumber.MIN_SAFE_INTEGERExample Live Demo    JavaScript Example           var result = Number.MIN_SAFE_INTEGER;       document.write("Minimum safe integer: " + result);     OutputMinimum safe integer: -9007199254740991

Number.isFinite() function in JavaScript

Samual Sam

Samual Sam

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

30 Views

The isFinite() function of the Number object accepts a number and determines if it is finite number. If the given number is finite it returns true else, it returns false.SyntaxIts Syntax is as followsNumber.isFinite(100/0);Example Live Demo    JavaScript Example           var result1 = Math.min(); ... Read More

Advertisements