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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript Best pratices #6

Open
tarikbouari opened this issue Aug 15, 2022 · 0 comments
Open

Javascript Best pratices #6

tarikbouari opened this issue Aug 15, 2022 · 0 comments

Comments

@tarikbouari
Copy link
Owner

hi @tarikbouari 馃憢 ,

you have done an amazing job so far, but here are some suggestions and code best practices you can implement in your code in order to improve it.

  • Please kindly remove all ensure code in your index.js file. (line 26)

    // checkBox.checked = false;

  • I highly suggest you should export at once all your variables instead of repeating yourself

    export const add = document.getElementById('send');
    export const inputAdd = document.getElementById('add');
    export const form = document.getElementById('form');
    const cleanBtn = document.getElementById('clean');

you can use a destruction synthax as the following : export { var1, var2, ...........}

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