Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS DSA TYPESCRIPT ANGULAR ANGULARJS GIT POSTGRESQL MONGODB ASP AI R GO KOTLIN SWIFT SASS VUE GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE INTRO TO PROGRAMMING INTRO TO HTML & CSS BASH RUST

JS Reference

JS by Category JS by Alphabet

JavaScript

JS Arrays JS Boolean JS Classes JS Dates JS Function JS Error JS Global JS Intl Namespace JS Iterators JS JSON JS Maps JS Math JS Numbers JS Objects JS Operators JS Assignment JS Arithmetic JS Comparison JS Logical Operators JS Bitwise Operators JS Misc Operators JS Precedence JS Promises JS Proxy JS Reflect JS RegExp Patterns JS RegExp Reference JS Sets JS Statements JS Strings JS Temporal JS Temporal.Duration JS Temporal.Instant JS Temporal.Now JS Temporal.PlainDate JS Temporal.PlainDateTime JS Temporal.PlainTime JS Temporal.ZonedDate JS Typed Arrays JS Typed Reference

Window

Window Object Window Console Window History Window Location Window Navigator Window Screen

HTML DOM

HTML Documents HTML Elements HTML Attributes HTML Collection HTML NodeList HTML DOMTokenList HTML Styles
alignContent alignItems alignSelf animation animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationTimingFunction animationPlayState background backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPosition backgroundRepeat backgroundSize backfaceVisibility border borderBottom borderBottomColor borderBottomLeftRadius borderBottomRightRadius borderBottomStyle borderBottomWidth borderCollapse borderColor borderImage borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeft borderLeftColor borderLeftStyle borderLeftWidth borderRadius borderRight borderRightColor borderRightStyle borderRightWidth borderSpacing borderStyle borderTop borderTopColor borderTopLeftRadius borderTopRightRadius borderTopStyle borderTopWidth borderWidth bottom boxShadow boxSizing captionSide caretColor clear clip color columnCount columnFill columnGap columnRule columnRuleColor columnRuleStyle columnRuleWidth columns columnSpan columnWidth counterIncrement counterReset cssFloat cursor direction display emptyCells filter flex flexBasis flexDirection flexFlow flexGrow flexShrink flexWrap font fontFamily fontSize fontStyle fontVariant fontWeight fontSizeAdjust height isolation justifyContent left letterSpacing lineHeight listStyle listStyleImage listStylePosition listStyleType margin marginBottom marginLeft marginRight marginTop maxHeight maxWidth minHeight minWidth objectFit objectPosition opacity order orphans outline outlineColor outlineOffset outlineStyle outlineWidth overflow overflowX overflowY padding paddingBottom paddingLeft paddingRight paddingTop pageBreakAfter pageBreakBefore pageBreakInside perspective perspectiveOrigin position quotes resize right scrollBehavior tableLayout tabSize textAlign textAlignLast textDecoration textDecorationColor textDecorationLine textDecorationStyle textIndent textOverflow textShadow textTransform top transform transformOrigin transformStyle transition transitionProperty transitionDuration transitionTimingFunction transitionDelay unicodeBidi userSelect verticalAlign visibility width wordBreak wordSpacing wordWrap widows zIndex

HTML Events

HTML Events HTML Event Objects HTML Event Properties HTML Event Methods

Web APIs

API Canvas API Console API Fetch API Fullscreen API Geolocation API History API MediaQueryList API Storage API Validation API Web

HTML Objects

<a> <abbr> <address> <area> <article> <aside> <audio> <b> <base> <bdo> <blockquote> <body> <br> <button> <canvas> <caption> <cite> <code> <col> <colgroup> <datalist> <dd> <del> <details> <dfn> <dialog> <div> <dl> <dt> <em> <embed> <fieldset> <figcaption> <figure> <footer> <form> <head> <header> <h1> - <h6> <hr> <html> <i> <iframe> <img> <ins> <input> button <input> checkbox <input> color <input> date <input> datetime <input> datetime-local <input> email <input> file <input> hidden <input> image <input> month <input> number <input> password <input> radio <input> range <input> reset <input> search <input> submit <input> text <input> time <input> url <input> week <kbd> <label> <legend> <li> <link> <map> <mark> <menu> <menuitem> <meta> <meter> <nav> <object> <ol> <optgroup> <option> <output> <p> <param> <pre> <progress> <q> <s> <samp> <script> <section> <select> <small> <source> <span> <strong> <style> <sub> <summary> <sup> <table> <tbody> <td> <tfoot> <th> <thead> <tr> <textarea> <time> <title> <track> <u> <ul> <var> <video>

Other References

CSSStyleDeclaration JS Conversion


JavaScript Intl Object Reference

The Intl Object

The JavaScript Intl object is the namespace for the ECMAScript Internationalization API.

It provides language-sensitive functionality for formatting and comparing data.

ObjectDescription
Intl.Collator Enables language-sensitive string comparison for sorting and searching.
Intl.DisplayNames Translates language, region, script, and currency display names consistently.
Intl.DurationFormat Enables language-sensitive formatting of durations (available since March 2025 in modern browsers)
Intl.ListFormat Formats lists of items using locale-appropriate conjunctions (e.g., "Jack, Rahul, and Bob" in English).
Intl.Locale Represents a Unicode locale identifier, allowing for easier manipulation and access to locale components like language, script, or region.
Intl.NumberFormat Formats numbers and currencies according to locale-specific conventions, including decimal separators, thousand separators, and currency symbols.
Intl.PluralRules Determines the appropriate plural form for a given number and language, which is crucial for grammatically correct messages (e.g., "1 item" vs. "2 items").
Intl.RelativeTimeFormat Formats relative times (e.g., "yesterday", "in 3 months") in a language-sensitive manner.
Intl.Segmenter Provides functionality for segmenting text into meaningful units such as words, sentences, or graphemes

The supportedValuesOf() Method

The supportedValuesOf() method returns an array of values supported by the system:

  • calendar
  • collation
  • currency
  • numbering systems
  • time zones
  • unit

Supported Calendar Codes

Example

const myArray = Intl.supportedValuesOf("calendar");
Try it Yourself »
Calendar ID Description Example
iso8601 The default calendar used by Temporal. This is the modern international civil calendar. 2026-05-17[u-ca=iso8601]
gregory The standard Gregorian calendar used in most countries today. 2026-05-17[u-ca=gregory]
buddhist Calendar used mainly in Thailand. The year numbering differs from Gregorian. 2026-05-17[u-ca=buddhist]
chinese A traditional lunisolar calendar used for festivals and cultural dates. 2026-05-17[u-ca=chinese]
coptic A calendar used by the Coptic Orthodox Church. 2026-05-17[u-ca=coptic]
dangi A traditional Korean lunisolar calendar. 2026-05-17[u-ca=dangi]
ethioaa An Ethiopic calendar era based on the "Year of the World". 2026-05-17[u-ca=ethioaa]
ethiopic The Ethiopic calendar using the Amete Mihret era. 2026-05-17[u-ca=ethiopic]
hebrew A lunisolar calendar used in Jewish religious and civil contexts. 2026-05-17[u-ca=hebrew]
indian The Indian National Calendar, also called Saka calendar. 2026-05-17[u-ca=indian]
islamic A lunar calendar used in Islamic contexts. 2026-05-17[u-ca=islamic]
islamic-civil A tabular version of the Islamic calendar. 2026-05-17[u-ca=islamic-civil]
islamic-rgsa A Saudi Arabia variant of the Islamic calendar. 2026-05-17[u-ca=islamic-rgsa]
islamic-tbla A tabular arithmetic Islamic calendar. 2026-05-17[u-ca=islamic-tbla]
islamic-umalqura A calendar used officially in Saudi Arabia. 2026-05-17[u-ca=islamic-umalqura]
japanese The Japanese imperial era calendar. 2026-05-17[u-ca=japanese]
persian The Solar Hijri calendar used in Iran and Afghanistan. 2026-05-17[u-ca=persian]
roc The Minguo calendar used in Taiwan. 2026-05-17[u-ca=roc]


Supported Currency Values

Example

const myArray = Intl.supportedValuesOf("currency");
Try it Yourself »

The table below shows common currency codes used with the JavaScript Intl API.

Currency values are based on the ISO 4217 standard and are used with Intl.NumberFormat.

Currency Code Name Symbol Region Example
USD US Dollar $ United States new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(100)
EUR Euro European Union new Intl.NumberFormat("de-DE",{style:"currency",currency:"EUR"}).format(100)
GBP British Pound £ United Kingdom new Intl.NumberFormat("en-GB",{style:"currency",currency:"GBP"}).format(100)
JPY Japanese Yen ¥ Japan new Intl.NumberFormat("ja-JP",{style:"currency",currency:"JPY"}).format(100)
CNY Chinese Yuan ¥ China new Intl.NumberFormat("zh-CN",{style:"currency",currency:"CNY"}).format(100)
INR Indian Rupee India new Intl.NumberFormat("en-IN",{style:"currency",currency:"INR"}).format(100)
AUD Australian Dollar $ Australia new Intl.NumberFormat("en-AU",{style:"currency",currency:"AUD"}).format(100)
CAD Canadian Dollar $ Canada new Intl.NumberFormat("en-CA",{style:"currency",currency:"CAD"}).format(100)
CHF Swiss Franc CHF Switzerland new Intl.NumberFormat("de-CH",{style:"currency",currency:"CHF"}).format(100)
SEK Swedish Krona kr Sweden new Intl.NumberFormat("sv-SE",{style:"currency",currency:"SEK"}).format(100)
NOK Norwegian Krone kr Norway new Intl.NumberFormat("no-NO",{style:"currency",currency:"NOK"}).format(100)
DKK Danish Krone kr Denmark new Intl.NumberFormat("da-DK",{style:"currency",currency:"DKK"}).format(100)

Supported Collation Values

Example

const myArray = Intl.supportedValuesOf("collation");
Try it Yourself »

Supported Numbering Systems

Example

const myArray = Intl.supportedValuesOf("numberingSystem");
Try it Yourself »

Supported Time Zones

Example

const myArray = Intl.supportedValuesOf("timeZone");
Try it Yourself »

Supported Unit Values

Example

const myArray = Intl.supportedValuesOf("unit");
Try it Yourself »

×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookies and privacy policy.

Copyright 1999-2026 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.

-->