The Startup
Published in

The Startup

JavaScript Best Practices — Rest Operator

Photo by Toa Heftiba on Unsplash

JavaScript is a very forgiving language. It’s easy to write code that runs but has mistakes in it.

In this article, we’ll look at why using the rest operators are better than their older alternatives.

Using Rest Parameters Instead of the arguments Object

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

Recommended from Medium

Creating Multiple Angular Library and publishing it in npm repository — part 2.

JavaScript Best Practices — Robust Code

Top React Hooks — Cookies, Debounce, and Clipboard

Leveraging a Spring Cloud Config Server in a NodeJS Application For Feature Toggles (Pt 2)

Server-Side Development with Hapi.js — 400 Series Errors

Efficient end-to-end testing for React-Native apps with Nix and Saucelabs

Learning the rules of a programming language is half the battle.

Next.js — Client-Side Navigation and API Routes

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

Get Started with React — Say ‘Hello World’

Send forms in your application using Netlify Forms

Understand apply, call and bind in JavaScript

Web Storage 🗃️