Do not commit console.log to your repo. It’s ugly, it kills performance and it can make confidential data be visible to anyone using the browser tools to look at your website.
No issue
Do not use window.alert() or window.confirm(). It’s ugly, impossible to style, it stops code execution and displays differently on different browsers. Use custom modal instead.
No issue
Keep the number of changes/updates to the DOM as low as possible, they are very expensive for the browser.
No issue
Keep the application logic separated from DOM manipulation tasks.
No issue
Do not use document.write or eval
No issue
Add node_modules dir to your .gitignore file as all those files are not needed in your repo (each team member will install all packages thanks to your package.json file).
No issue
Do not commit old pieces of code as inline comments. They will make your project look messy. If you need to review a previous version of your code, you can always use git history.
No issue