bugl
bugl
HomeLearnPatternsSearch
HomeLearnPatternsSearch

Loading lesson path

Learn/JavaScript/Debugging, Projects, and Reference
JavaScript•Debugging, Projects, and Reference

ECMAScript 2022

New Features in JavaScript 2022

Supported in all modern browsers since

March 2023.

Feature

Description

Array at()

Returns an indexed element from an array

String at()

Returns an indexed element from an string

Formula

RegExp /d

Perform substring matches

Object.hasOwn() Check if a property is the own property of an object error.cause Lets you specify the reason behind an error await import Lets JavasSript modules wait for resources that require import before running.

Class field declarations

Allows for properties to be defined directly within a class

Private methods and fields

Allows for private properties (#method and #field)

Browser Support

ECMAScript 2022 is supported in all modern browsers since

March 2023

Chrome

94

Edge

94

Firefox

93

Safari

16.4

Opera

80

Sep 2021

Sep 2021

Oct 2021

Mar 2023

Oct 2021

JavaScript Array at()

Previous

Project - Form Validation

Next

JavaScript Debugging Reference