Best Practices for JavaScript

I didn’t see that this question had been asked before, and I feel a little silly asking it… But is there a place where one would find best practices?

I’ve been googling and I keep coming up with opinion articles. All the stuff that looks definitive is years old. For example: https://www.w3.org/wiki/JavaScript_best_practices was last updated 23 May 2015. I know that doesn’t make it irrelevant, but things have changed a bit since then.

Good question. I know this isn’t exactly the right answer, but looking up various style guides from reputable companies / developers is a good way to start. For example, the Airbnb style guide is very popular:

Hope that helps :smiley:

1 Like