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

JavaScript best practices #5

Open
Cluab opened this issue Nov 7, 2022 · 0 comments
Open

JavaScript best practices #5

Cluab opened this issue Nov 7, 2022 · 0 comments

Comments

@Cluab
Copy link
Owner

Cluab commented Nov 7, 2022

instead of using the same border multiple times, I can use a class attribute

https://github.com/Cluab/to-do-list/blob/master/src/style.css#L36

add all of the global consts to the start of the page.

https://github.com/Cluab/to-do-list/blob/master/src/index.js#L7:~:text=from%20local%20storage-,const%20retrieveData%20%3D%20localStorage.getItem(%27list%27)%3B,const%20body%20%3D%20document.querySelector(%27body%27)%3B,-body.onload

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