-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
Missing function keyword in snippet code at:
https://github.com/getify/Functional-Light-JS/blob/master/manuscript/ch7.md/#behavior-too
function person(name,age) {
return happyBirthday(){
age++;
console.log(
`Happy ${age}th Birthday, ${name}!`
);
}
}
It should be:
function person(name,age) {
return function happyBirthday(){
age++;
console.log(
`Happy ${age}th Birthday, ${name}!`
);
}
}
Metadata
Metadata
Assignees
Labels
No labels