getDefault (Locale - JavaScript)

Gets the current value of the default locale for this instance of the Java Virtual Machine.

The Java Virtual Machine sets the default locale during startup based on the host environment. It is used by many locale-sensitive methods if no locale is explicitly specified. It can be changed using the setDefault method.

Defined in

Locale (Runtime - JavaScript)

Syntax

getDefault() : Locale
Return value Description
Locale The default locale for this instance of the Java Virtual Machine.