this.name=givenname console.log(`${this.name} ,this the new constructor `) login() { console.log(" employe has logged in") } leavesrequest(leaves) { console.log ...
A constructor is useful when you want to create multiple similar objects with the same properties and methods. It’s a convention to capitalize the name of constructors to distinguish them from regular ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results