Skip to content

Commit 4388e26

Browse files
authored
Merge pull request #584 from amanbangad/patch-3
code broken
2 parents 22446eb + 51cb8a2 commit 4388e26

File tree

1 file changed

+1
-1
lines changed
  • 1-js/07-object-oriented-programming/08-class-patterns

1 file changed

+1
-1
lines changed

1-js/07-object-oriented-programming/08-class-patterns/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function User(name, birthday) {
4747
*!*
4848
// only visible from other methods inside User
4949
function calcAge() {
50-
new Date().getFullYear() - birthday.getFullYear();
50+
return new Date().getFullYear() - birthday.getFullYear();
5151
}
5252
*/!*
5353

0 commit comments

Comments
 (0)