JavaScript New Features in ES2021
Name |
Description |
---|---|
Resolves if any Promise resolves, else reject after all reject. |
|
Replaces all occurrences of a substring with another in string |
|
Numeric Separators (_) |
separating digits in numbers using underscores. |
ECMAScript 2021 (JS 2021/2022)
JavaScript in 2021/2022 continues to evolve, with ES2021/ES2022 bringing enhanced features like private class fields, promise improvements, and record data structures, boosting developer productivity and code quality.