This commit is contained in:
User1
2023-11-08 14:02:38 +03:00
parent 2123d65584
commit 2e57518d5f
118 changed files with 15715 additions and 0 deletions

14
Модули/user.js Normal file
View File

@@ -0,0 +1,14 @@
function User(name, age) {
this.name = name;
this.age = age;
this.displayInfo = function () {
console.log(
`Имя: ${this.name} Возраст: ${this.age}`
);
};
}
User.prototype.sayHi = function () {
console.log(`Привет, меня зовут ${this.name}`);
};
module.exports = User;