class Approval {
constructor({ name, age, city, profession }) {
this.name = name,
this.age = age,
this.city = city,
this.profession = profession
};
withFire() {
console.log(`Hello, my name is ${this.name}, i am ${this.age} years old and i live in ${this.city}. I am a ${this.profession}`)
}
}
const approval = new Approval({ name: "Mehmet", age: "20", city: "Hatay", profession: "web design and programming student" })
approval.withFire()
module.exports = Approval;
approval-denial Goto Github PK
Name: Approval
Type: User
Company: @Luppux
Bio: Developer.
Twitter: ApprovalCyber
Location: Türkiye