Latest javascript standard not supported (ES2021)

Hi there!

The javascript function String.prototype.replaceAll isn’t supported on the platform.
It’s part of the latest specification (ES2021).

What compiler/transpiler do you use ?
For exemple, with webpack, it’s necessary to specify configuration.target = ‘es2020’ for it to support the latest features (yes, the label remained 2020).

Thx in advance.

1 Like

The supported languages are not systematically updated for compatibility purpose. The details of the current used versions are listed here Coding Games and Programming Challenges to Code Better

3 Likes