Parameters in a Constructor in OOP in JavaScript

You can pass parameters to the constructor. Let's look at an example:

javascriptclass User {
  constructor(name, surn) {
    console.log(name + ' ' + surn);
  }
}

Let's pass the parameters at the time of object creation:

javascriptnew User('john', 'smit');
Задание 1

Pass the employee's name and salary to the Employee class constructor.