Open halimahexe opened 2 months ago
Under Task Removal the code snippet uses 'todos' instead of 'tasks' as a variable name.
function remove(id: number) { let index = todos.findIndex((t) => t.id === id); todos.splice(index, 1); }
When the Birthday object is refactored, a new variable birthday is added but not defined.
birthday
date: new Date(birthday),
I think within createBirthday() the second arg should be birthday: string to make this work.
createBirthday()
birthday: string
Under Task Removal the code snippet uses 'todos' instead of 'tasks' as a variable name.
When the Birthday object is refactored, a new variable
birthday
is added but not defined.I think within
createBirthday()
the second arg should bebirthday: string
to make this work.