---
schema_version: "1"
id: 857fb3730a327a43295f005ebb7cfaca5084308c0ec3ee57775db62a39f4b638
title: Access New JavaScript Features and Functionality with the Latest Compatibility Mode
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/rn_comp_mode_b2c_21_2_w8484513_la.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.rn_comp_mode_b2c_21_2_w8484513_la.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 718cdd87ebbdc34155c1c16dc568915b4d48caa2f2247f0e7467c3a678e83507
description: 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.
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# 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.

#### See Also

- [Compatibility Mode Changes](https://documentation.b2c.commercecloud.salesforce.com/DOC3/index.jsp?topic=%2Fcom.demandware.dochelp%2Fcontent%2Fb2c_commerce%2Ftopics%2Fsite_development%2Fb2c_compatibility_mode_considerations.html)