Массивы

Инициализация типов / Коллекции

//Массив целых чисел
let primeNumbers = [ 2, 3, 5, 7, 11, 13, 17, 19 ];

//Массив строк
let gameList = [ "soccer", "hockey", "basketball" ];

//возможность ECMAScript 6
class Employee {
    constructor(firstName, lastName) {
        this.firstName = firstName;
        this.lastName = lastName;
    }
}

//Массив Employee 
let employees = [
    new Employee("Anton", "Pavlov"),
    new Employee("Elena", "Kirienko")
];

console.log(employees[1].lastName);