- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Samual Sam has Published 2492 Articles
Samual Sam
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
Samual Sam
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
Samual Sam
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
Samual Sam
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
Samual Sam
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
Samual Sam
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
Samual Sam
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
Samual Sam
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
Samual Sam
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
Samual Sam
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