dimetarius
9/25/2019 - 4:57 PM

Функція конструктор

function User(name, id) {
  this.name = name;
  this.id = id;
  this.human = true;
}

let ivan = new User('Ivan', 25);
let alex = new User('Alex', 20);