code broken

fix for age being undefined
This commit is contained in:
Aman Bangad 2017-06-02 10:09:25 -04:00 committed by GitHub
parent e4ad8d0810
commit 51cb8a2b5f

View file

@ -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();
}
*/!*