The 5 most transformative JavaScript features from ES8

Tari Ibaba
Coding Beauty
Published in
4 min readJun 20, 2024

--

ES8 was packed with valuable features that transformed the way we write JavaScript.

Code became cleaner, easier to write, and upgraded with new capabilities.

Let’s check them out and see the ones you missed.

1. Trailing commas

Trailing commas used to cause a syntax error before ES8!

❌ Before:

But this caused some problems:

Rearranging the list came with pains:

We also always had to add a comma to the last item to add a new one — cluttering up git diffs:

So ES8 fixed all that:

✅ Now:

--

--