-
Andrej Rasevic authoredAndrej Rasevic authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
person.js 603 B
class Person {
constructor(name, age){
this.name = name;
this.age = age;
}
toString(){
return "Name is: " + this.name + " age is " +this.age;
}
}
class Student {
constructor(name, gpa){
this.name = name;
this.gpa = gpa;
}
toString(){
return "Name is: " + this.name + " gpa is " +this.gpa;
}
}
function saySomething(phrase) {
console.log(phrase)
}
module.exports.Person = Person;
module.exports.Stu = Student;
module.exports.saySomething = saySomething;
module.exports = {
Person: Person,
Stu: Student
}