Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[learn/typescript] #968

Open
halimahexe opened this issue May 17, 2024 · 0 comments
Open

[learn/typescript] #968

halimahexe opened this issue May 17, 2024 · 0 comments

Comments

@halimahexe
Copy link

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.

date: new Date(birthday),

I think within createBirthday() the second arg should be birthday: string to make this work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant