Skip to content
_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN DE
Let's talk

JavaScript Modern Syntax (ES2024)

27. 06. 2018 Updated: 27. 03. 2026 1 min read intermediate
This article was published in 2018. Some information may be outdated.

JavaScript is evolving rapidly. ES2024 brings Array grouping, well-formed Unicode strings, and other useful features.

Key Features

// Array grouping (ES2024) const people = [ { name: ‘Jan’, age: 30 }, { name: ‘Eva’, age: 25 }, { name: ‘Tom’, age: 30 }, ]; const byAge = Object.groupBy(people, p => p.age); // { 25: [{name:’Eva’,…}], 30: [{name:’Jan’,…},{name:’Tom’,…}] } // Promise.withResolvers const { promise, resolve, reject } = Promise.withResolvers(); // Temporal API (Stage 3) const now = Temporal.Now.plainDateTimeISO(); const date = Temporal.PlainDate.from(‘2025-03-15’);

Modern Syntax

// Optional chaining + nullish coalescing const city = user?.address?.city ?? ‘Unknown’; // Top-level await const data = await fetch(‘/api’).then(r => r.json()); // Structuring clone const deep = structuredClone(original); // at() — negative indexing const last = arr.at(-1);

Key Takeaway

Use modern syntax — groupBy, at(), structuredClone. Temporal will replace the Date object.

javascriptes2024programming
Share:

CORE SYSTEMS team

We build core systems and AI agents that keep operations running. 15 years of experience with enterprise IT.