Elements of JavaScript Style – JavaScript Scene – Medium

Focus On Content  ~/ click me to toggle the navigation bar to the right

<img src="/img/2017/05/javascripticon.png" alt=""> Great article focusing on Javascript style. Provides some good examples of JavaScript coding styles, practices, and things to avoid.

The examples includes:

  1. Make the function the unit of composition. One job for each function.
  1. Omit needless code.
  1. Use active voice.
  1. Avoid a succession of loose statements.
  1. Keep related code together.
  1. Put statements and expressions in positive form.
  1. Use parallel code for parallel concepts.

Source: Elements of JavaScript Style – JavaScript Scene – Medium