code broken
fix for age being undefined
This commit is contained in:
parent
e4ad8d0810
commit
51cb8a2b5f
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ function User(name, birthday) {
|
|||
*!*
|
||||
// only visible from other methods inside User
|
||||
function calcAge() {
|
||||
new Date().getFullYear() - birthday.getFullYear();
|
||||
return new Date().getFullYear() - birthday.getFullYear();
|
||||
}
|
||||
*/!*
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue