14 lines
185 B
JavaScript
14 lines
185 B
JavaScript
/**
|
|
* Created by cshao on 2021-03-01.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
function Person(age) {
|
|
this.age = age;
|
|
this.isOld = function (){
|
|
return this.age > 60;
|
|
}
|
|
}
|
|
|
|
module.exports = Person; |