TypeScript – Prototype property
The prototype property allows you to add properties and methods to an object. Example function employee(id:number,name:string) { this.id = id this.name = name } var emp = new employee(123,"Smith") employee.prototype.email="smith@abc.com"…