Found 6710 Articles for Javascript

Set.values() function in JavaScript

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

854 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();       setObj.add('Apples');       setObj.add('Oranges');       setObj.add('Bananas');       setObj.add('Grapes');       var valuesObject = setObj.values();       for(i=0; i

Set.has() function in JavaScript

karthikeya Boyini
Updated on 25-Jun-2020 13:03:11

267 Views

The has() function of the Set accepts a value and verifies whether the current object contains the specified value. If so, this function returns the boolean value true else, it returns false.SyntaxIts Syntax is as followssetObj.has()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(""); ... Read More

Set.forEach() function in JavaScript

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

922 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 the set.SyntaxIts Syntax is as followssetObj.forEach()Example Live Demo    JavaScript Example           function sampleFunction(value){          document.writeln(value+", ");       }       const setObj1 = new Set();       setObj1.add('Java');       setObj1.add('JavaFX');       setObj1.add('JavaScript'); ... Read More

Set.entries() function in JavaScript

karthikeya Boyini
Updated on 25-Jun-2020 12:50:45

131 Views

The entries() function of the Set returns an iterator object which holds the contents of the current Set. This iterator object returns a pair of values for each entry just like map (key and value). But here, instead of both key and value it returns the element of the set in the particular position.SyntaxIts Syntax is as followssetObj.entries()Example Live Demo    JavaScript Example           const setObj = new Set();       setObj.add('Java');       setObj.add('JavaFX');       setObj.add('JavaScript');       setObj.add('HBase');       const entries = setObj.entries();     ... Read More

Set.delete() function in JavaScript

Samual Sam
Updated on 24-Nov-2023 01:01:23

1K+ Views

The delete() function of the Set object accepts a value and removes it from the current Set object. Syntax Its Syntax is as follows setObj.delete() Example    JavaScript Example           const setObj = new Set();       setObj.add('Java');       setObj.add('JavaFX');       setObj.add('JavaScript');       setObj.add('HBase');       document.write("Contents of the Set before deletion:");       document.write("");       for (let item of setObj) {          document.write(item);          document.write("");       }       ... Read More

Set.clear() function in JavaScript

karthikeya Boyini
Updated on 25-Jun-2020 12:52:59

563 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:

Universal Mobile Telecommunications System

Ankith Reddy
Updated on 30-Jul-2019 22:30:23

6K+ 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

Set.add() function in JavaScript

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

230 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

Set.size Property in JavaScript

karthikeya Boyini
Updated on 25-Jun-2020 12:54:46

396 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

Number.parseInt() function in JavaScript

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

75 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

Advertisements