Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function personAndTeacher() {
- class Person {
- constructor(name, email) {
- this.name = name;
- this.email = email;
- }
- }
- class Teacher extends Person {
- constructor(name, email, subject) {
- super(name, email);
- this.name = name;
- this.email = email;
- this.subject = subject;
- }
- }
- return {
- Person,
- Teacher,
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment