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;
🧊
Developer.
Highlights
Pinned Loading
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.