Аператар instanceof у ААП у JavaScript

Аператар instanceof дазваляе праверыць належыць аб'ект пэўнаму класу. Давайце паглядзім на прыкладзе. Хай у нас ёсць наступны клас:

javascriptclass User {
  
}

Зробім аб'ект з гэтага класу:

javascriptlet user = new User;

Праверым, належыць аб'ект з зменнай нашаму класу:

javascriptconsole.log(user instanceof User); // true
Задание 1

Вызначыце, якім будзе вынік выканання наступнага кода:

javascriptclass Student {
  
}
class Employee {
  
}

let employee = new Employee;
console.log(employee instanceof Employee);
console.log(employee instanceof Student);
Задание 2

Даны наступны код:

javascriptclass Student {
  constructor(name) {
    this.name = name;
  }
}
class Employee {
  constructor(name) {
    this.name = name;
  }
}

let users = [
  new Student('user1'),
  new Employee('user2'),
  new Student('user3'),
  new Employee('user4'),
  new Student('user5'),
  new Employee('user6'),
  new Student('user7'),
];

Перабярыце цыклам масіў аб'ектаў і вывядзіце ў кансоль толькі імёны працоўнікаў.