ホストのロケールを考慮して、String オブジェクトのストリング表現を取得します。
cities = new String("Paris Moscow Tokyo"); cities.toLocaleString()