Multiple objects of the same class in OOP in JavaScript

You can create several objects of the same class. For example, let's create two users:

javascriptlet user1 = new User;
let user2 = new User;

Let's give them names:

javascriptuser1.name = 'john';
user2.name = 'eric';

Let's output these names:

javascriptconsole.log(user1.name);
console.log(user2.name);
Задание 1

Create some objects of class Employee.

Задание 2

Write down the name and salary of each employee in the property.

Задание 3

Display the sum of the salaries of the workers you have created.