Classes and Objects in OOP in JavaScript
OOP classes are declared using the class keyword. Let's create a class that describes some users:
javascriptclass User {
}
You can create an object of this class using the new command:
javascriptlet user = new User;
You can output the created object to the console:
javascriptconsole.log(user);
Задание 1
Make class Employee.
Задание 2
Create an object of class Employee and print it to the console.