JavaScript Date constructor is used to create a new Date object. The value returned will be different on the basis of whether the object is… Read More
Tag Archives: Constructors
In JavaScript, the RegExp() constructor is used to create a RegExp object. This object can be created with or without the new keyword. The RegExp… Read More
JavaScript Intl Segmenter() Constructor is used for creating Intl.Segmenter object. This constructor is created using the new keyword. If we create the constructor without the… Read More
JavaScript Intl RelativeTimeFormat() Constructor is used for creating Intl.RelativeTimeFormat object. This constructor is created using the new keyword. If we create the constructor without the… Read More
JavaScript Intl PluralRules() Constructor is used for creating Intl.PluralRules object. This constructor is created using the new keyword. If we create the constructor without the… Read More
JavaScript Intl.ListFormat() Constructor is used for creating Intl.ListFormat object. This constructor is created using the new keyword. If we create the constructor without the new… Read More
In JavaScript, there is no particular Generator() constructor but instead, we can use generator function declaration to construct a Generator object which is iterable as… Read More
JavaScript Intl.Collator() constructor is used to create an Intl.Collator object. This constructor can be called with or without the new keyword. Syntax: new Intl.Collator(loc, opt)… Read More
JavaScript Intl.DateTimeFormat Constructor is used for creating Intl.DateTimeFormat objects. This constructor can be called with or without the new keyword Syntax: Intl.DateTimeFormat(loc, opt) new Intl.DateTimeFormat(loc,… Read More
JavaScript Intl.DisplayNames Constructor is used for creating Intl.DisplayNames object. This constructor is created using the new keyword. If we create the constructor without the new… Read More
The map constructor property in JavaScript is used to return the map constructor function for the object. The function which is returned by this property… Read More
JavaScript Set Constructor Property is used to return the Set constructor() for the object. It only returns the reference of the function and does not… Read More
JavaScript WeakSet Constructor is used to create a weakset that is similar to the set as it does not contain duplicate objects. It is different… Read More
Classes were introduced in ES6 and along with it the concepts of Object Oriented Programming were implemented. Even with all these new features, JavaScript does… Read More
In JavaScript, there are two ways to create a promise: using the Promise.resolve method or using the new Promise constructor. While both ways achieve the… Read More