Skip to main content
Helpful?

Overview ES6

What is ES6?​

ES6 stands for ECMAScript 6.

ECMAScript was created to standardize JavaScript, and ES6 is the 6th version of ECMAScript, it was published in 2015, and is also known as ECMAScript 2015.

Using the country-cities in ES6​

Import​

import { countries, states, cities } from 'country-cities';

Learn more here

Countries​

const countries = coutries.all();

States​

const states = states.all();

Cities​

const cities = cities.all();
Helpful?