const arEG = new Intl.Locale("ar-EG");
console.log(arEG.getTimeZones()); // ["Africa/Cairo"]Intl.Locale.prototype.getTimeZones() / notebook
Intl.Locale.prototype.getTimeZones()
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
const jaJP = new Intl.Locale("ja-JP");
console.log(jaJP.getTimeZones()); // ["Asia/Tokyo"]const ar = new Intl.Locale("ar");
console.log(ar.getTimeZones()); // undefined