---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# JavaScript engine on the platform

# JavaScript engine on the platform {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The JavaScript engine that evaluates server-side scripts supports the ECMAScript 2021
(ES12) standard.

No plugins or properties are required to install the new JavaScript engine.  
The benefits of the new engine are:

* Modern library code and scripting features, such as optional chaining, destructuring, const and let declarations, and arrow functions
* Follows standard ECMAScript 2021 behavior
{#c_JS_engine_upgrade__ul_rnr_qkq_tv}

## What to know {#c_JS_engine_upgrade__section_v1n_stp_jbb}

The JavaScript engine provides an improved environment for developing scripts.

* Beginning with the Xanadu release, when you create new scripts, ECMAScript 2021 (ES12) mode is turned on by default regardless of the JavaScript mode configured for the application.
* Beginning with the Tokyo release, new and existing scoped applications can run in ECMAScript 2021 (ES12) mode.
* Compatibility mode supports the legacy modifications to the legacy JavaScript engine.
* Legacy code continues to work.
{#c_JS_engine_upgrade__ul_nv4_rmq_tv}

You configure the mode that the JavaScript engine uses in the design and runtime settings for applications. Available modes are ECMAScript 2021 (ES12), ES5 Standards, and Compatibility.
* **[JavaScript modes](https://servicenow-prod.fluidtopics.net/4MIkVSVOsgrYS~qMY6BfXA)**   
  JavaScript mode is a design and runtime setting for custom applications and scripts. To support existing server-side scripts and new scripts developed to the ECMAScript 2021 standard, the JavaScript engine has three modes: ECMAScript 2021 (ES12), ES5 Standards, and Compatibility.
* **[JavaScript engine feature support](https://servicenow-prod.fluidtopics.net/nJGoD1YjFWtw8YbgWTYeXQ)**   
  Compare ECMAScript features between the ECMAScript 2021 (ES12) and ES5 Standards JavaScript modes in Xanadu. Both modes support a subset of ECMAScript features.

**Related topics**   

* [Update a custom application record](https://www.servicenow.com/docs/access?context=t_UpdateAnApplicationRecord&version=xanadu&pubname=xanadu-application-development&ft:locale=en-US)

