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

ISSUES: JavaScript best practices #6

Closed
clintonjosephs opened this issue Jan 17, 2022 · 1 comment
Closed

ISSUES: JavaScript best practices #6

clintonjosephs opened this issue Jan 17, 2022 · 1 comment

Comments

@clintonjosephs
Copy link
Owner

Below are some issues I noticed with my code based on JavaScript based practices

  • It would be nice to refactor loop in UpdateToDoItemIndex to use ForEach loop instead of the good old for loop
  • Consider pushing all variable declarations within markListForChanges AND swapItems to the beginning of its block
  • Based on JavaScript best practices, it would be nice to initialize this variable
@clintonjosephs
Copy link
Owner Author

Fixed

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