commit
4388e26dc0
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ function User(name, birthday) {
|
||||||
*!*
|
*!*
|
||||||
// only visible from other methods inside User
|
// only visible from other methods inside User
|
||||||
function calcAge() {
|
function calcAge() {
|
||||||
new Date().getFullYear() - birthday.getFullYear();
|
return new Date().getFullYear() - birthday.getFullYear();
|
||||||
}
|
}
|
||||||
*/!*
|
*/!*
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue