common-coding-conventions

JavaScript Specific Advice

Creating Namespaces

Functions that do not belong to a class should still be encapsulated into namespaces.

const car = {
  start: () => { console.log('start'); },
  stop: ()  => { console.log('stop');  },
}

Naming Pitfalls

Event Handling

Performance

While you should not optimize while writing the initial code, JavaScript is often the bottleneck in web applications.

References