You are here:
Access New JavaScript Features and Functionality with the Latest Compatibility Mode
When you select compatibility mode 21.2, the B2C Commerce Server-Side JavaScript engine supports elements from ECMAScript 6 (ES6) and later. With compatibility mode 21.2, you can access numerous fixes and new and expanded features, including new top-level built-in types and methods for existing classes.
How: ES6 isn't fully compatible with ECMAScript 5 (ES5). For example, ES6 includes new keywords that you can no longer use as identifiers. Compatibility modes earlier than 21.2 continue to use a JavaScript version based on ES5.

