- 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
Found 2418 Articles for HTML
![Samual Sam](https://www.tutorialspoint.com/assets/profiles/13514/profile/60_83486-1512649303.jpg)
172 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'); setObj.add('JavaScript'); setObj.add('HBase'); document.write("Contents of the Set:"); document.write(""); for (let item of setObj) { document.write(item); document.write(""); } OutputContents of the Set: Java JavaFX JavaScript HBase
![karthikeya Boyini](https://www.tutorialspoint.com/assets/profiles/13518/profile/60_31598-1537784993.jpg)
314 Views
The size property of the Set object returns number representing the number of elements in the current set object.SyntaxIts Syntax is as followsObj.size();Example Live Demo JavaScript Example const setObj = new Set(); setObj.add('Java'); setObj.add('JavaFX'); setObj.add('JavaScript'); setObj.add('HBase'); document.write("Size of the Set object: "+setObj.size); OutputSize of the Set object: 4
![Samual Sam](https://www.tutorialspoint.com/assets/profiles/13514/profile/60_83486-1512649303.jpg)
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
![karthikeya Boyini](https://www.tutorialspoint.com/assets/profiles/13518/profile/60_31598-1537784993.jpg)
26 Views
The parseFloat() function of the Number object accepts a string, parses and returns floating point number represented by it.SyntaxIts Syntax is as followsNumber.parseFloat("32.01");Example Live Demo JavaScript Example var result = Number.parseFloat("32.01"); document.write(result); Output32.01
![Samual Sam](https://www.tutorialspoint.com/assets/profiles/13514/profile/60_83486-1512649303.jpg)
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 = Number.isSafeInteger(90071991); if(result) { document.write("Given number is a safe integer"); }else { document.write("Given number is not a safe integer"); } OutputGiven number is a safe integerExamplePassing Decimal value, negative value ... Read More
![karthikeya Boyini](https://www.tutorialspoint.com/assets/profiles/13518/profile/60_31598-1537784993.jpg)
31 Views
The isInteger() 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.isInteger(100/0);Example Live Demo JavaScript Example var result = Number.isFinite(100/0); if(result) { document.write("Given number is finite"); }else { document.write("Given number is infinite"); } OutputGiven number is infiniteExampleIn addition to equation you can also pass positive number, negative number, zero and ... Read More
![Samual Sam](https://www.tutorialspoint.com/assets/profiles/13514/profile/60_83486-1512649303.jpg)
32 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(); document.write(isFinite(result1)); document.write(""); var result2 = Number.isFinite(100/0); document.write(result2); document.write(""); var result3 = Math.max(25, 36, 862); document.write(isFinite(result3)); document.write(""); document.write(isFinite("Hello")); Outputfalse false true false
![Samual Sam](https://www.tutorialspoint.com/assets/profiles/13514/profile/60_83486-1512649303.jpg)
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](https://www.tutorialspoint.com/assets/profiles/13514/profile/60_83486-1512649303.jpg)
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
![karthikeya Boyini](https://www.tutorialspoint.com/assets/profiles/13518/profile/60_31598-1537784993.jpg)
111 Views
The Number.EPSILON property of the Number object represents the difference between 1 and the smallest floating point number greater than 1.SyntaxIts Syntax is as followsNumber.EPSILONExample Live Demo JavaScript Example var result = Number.EPSILON; document.write("Value of the epsilon : " + result); OutputValue of the epsilon: 2.220446049250313e-16