Merge pull request #584 from amanbangad/patch-3

code broken
This commit is contained in:
Ilya Kantor 2017-06-03 09:19:59 +03:00 committed by GitHub
commit 4388e26dc0

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