The Startup
Published in

The Startup

JavaScript Antipatterns — Formatting and More

Photo by Jean-Philippe Delberghe on Unsplash

JavaScript lets us do a lot of things. It’s sometimes too forgiving in its syntax.

In this article, we’ll look at some antipatterns that we should avoid when we format JavaScript code, naming, and white spaces.

Coding Conventions

We got to establish some coding conventions so that it’s predictable and neat.

Get smarter at building your thing. Follow to join The Startup’s +8 million monthly readers & +756K followers.

Recommended from Medium

Top React Hooks — Vibration, Videos, and Intervals

Asynchronous JavaScript: Diving Deeper

TypeScript vs JavaScript

Django & React Project: Look at some jokes and smile :)

Server-Side Development with Fastify — Request Validation

How to Use Google Translate API

Create a Tooltip with React and JavaScript

JavaScript|Callback, Promise, async/await

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
John Au-Yeung

John Au-Yeung

Web developer. Subscribe to my email list now at Email me at

More from Medium

Advanced JavaScript Memoization with Lodash.memoize

Experimenting with Javascript Objects (Part 1)

How to Get Accurate Countdown in JavaScript

3 Useful JavaScript Snippets