JavaScript Intl RelativeTimeFormat() Constructor
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 new keyword it will give a TypeError. Syntax: new Intl.RelativeTimeFormat(loc, opt) Parameters: It has two