# Cách truyền mảng vào function

# Example

const cities = ['Hanoi', 'Paris', 'Stockholm'];

function printCities(city0, city1, city2) {
  console.log(city0);
  console.log(city1);
  console.log(city2);
}

# ES6

printCities(...cities)

# Old way

printCities.apply(null, cities)