Here are some guides I've used this semester.
W3Schools JavaScript best practices - a guide for correct formatting
and directly followed by W3Schools JavaScript common mistakes
and a site for checking the accessibility, or lack thereof, of your website, this one is a Chrome extension but you can put a URL into the web version if you have a published site.
Try adding your favourite site's URL into this one
Mal