- 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 448 Articles for Programming Scripts
455 Views
The clear() function of the Set object removes all elements from the current Set object.SyntaxIts Syntax is as followssetObj.clear()Example Live Demo JavaScript Example const setObj = new Set(); setObj.add('Java'); setObj.add('JavaFX'); setObj.add('JavaScript'); setObj.add('HBase'); setObj.clear(); document.write("Contents of the Set:"); for (let item of setObj) { document.write(item); document.write(""); } OutputContents of the Set:
5K+ Views
The Universal Mobile Telecommunications System (UMTS) is a broadband, packet-based, 3G mobile cellular system based upon GSM standards. The specifications of UMTS covers the entire network system, including the radio access network, the core network and user authentication. Features UMTS is a component of IMT-2000 standard of the International Telecommunications Union (ITU), developed by 3GPP. It uses wideband code division multiple access (W-CDMA) air interface. It provides transmission of text, digitized voice, video and multimedia. It provides high bandwidth to mobile operators. It gives a high data rate of 2Mbps. For High-Speed Downlink Packet Access (HSDPA) handsets, the data-rate is as high ... Read More
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'); 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
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
37 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
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
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
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
26 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
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