Merge pull request #585 from amanbangad/patch-4

broken code
This commit is contained in:
Ilya Kantor 2017-06-03 09:19:51 +03:00 committed by GitHub
commit 22446eb4bb

View file

@ -76,7 +76,7 @@ Like this:
function User(name, birthday) {
// only visible from other methods inside User
function calcAge() {
new Date().getFullYear() - birthday.getFullYear();
return new Date().getFullYear() - birthday.getFullYear();
}
return {