calculateAge example fix

pull/38/head
Patrick Njuguna 6 years ago committed by GitHub
parent 0dd4d7e165
commit 5973d74602
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -366,7 +366,7 @@ console.log(generateFullName('David', 'Smith'))
``` ```
```js ```js
function calculate_age(birthYear, currentYear = 2019) { function calculateAge(birthYear, currentYear = 2019) {
let age = currentYear - birthYear let age = currentYear - birthYear
return age return age
} }

Loading…
Cancel
Save