JavaScript ES2024 Features You Should Know

By ProWeb Nigeria | Published: 2025-12-30T18:50:23.271916+01:00

Discover the latest JavaScript ES2024 features and how to use them in your projects.

JavaScript ES2024 Features

Stay current with the latest JavaScript features.

Array Grouping

const items = [
  { type: 'fruit', name: 'apple' },
  { type: 'vegetable', name: 'carrot' },
  { type: 'fruit', name: 'banana' }
];

const grouped = Object.groupBy(items, item => item.type);
// { fruit: [...], vegetable: [...] }

Promise.withResolvers()

const { promise, resolve, reject } = Promise.withResolvers();

// Use resolve/reject
JavaScript ES2024 Features You Should Know
Back to Blog
Tech Tips 10 min read

JavaScript ES2024 Features You Should Know

Discover the latest JavaScript ES2024 features and how to use them in your projects.

P

ProWeb Nigeria

December 30, 2025

JavaScript ES2024 Features You Should Know

JavaScript ES2024 Features

Stay current with the latest JavaScript features.

Array Grouping

const items = [
  { type: 'fruit', name: 'apple' },
  { type: 'vegetable', name: 'carrot' },
  { type: 'fruit', name: 'banana' }
];

const grouped = Object.groupBy(items, item => item.type);
// { fruit: [...], vegetable: [...] }

Promise.withResolvers()

const { promise, resolve, reject } = Promise.withResolvers();

// Use resolve/reject anywhere
setTimeout(() => resolve('done'), 1000);

await promise; // 'done'

Well-Formed Unicode Strings

const str = 'Hello\uD800World';
str.isWellFormed(); // false
str.toWellFormed(); // 'Hello�World'

Atomics.waitAsync()

Non-blocking wait for SharedArrayBuffer changes.

RegExp v Flag

// Set notation in character classes
const re = /[\p{Letter}--[aeiou]]/v;
// Matches letters except vowels

Resizable ArrayBuffers

const buffer = new ArrayBuffer(8, { maxByteLength: 16 });
buffer.resize(12); // Grow the buffer

Need modern JavaScript development? Contact ProWeb Nigeria.

Tags

javascript es2024es2024 featuresnew javascript featuresecmascript 2024js updates

Enjoyed this article?

Share it with your network

Ready to Start Your Project?

Let's build a stunning website that grows your business and converts visitors into customers.