SuiteScript 2.1 Language Examples

SuiteScript 2.1 runs on the GraalVM runtime engine, so it supports the ECMAScript features that Graal does (ES2019). For example, SuiteScript 2.1 includes support for constants, block-scoped variables and functions, customizable iterator behavior, typed arrays, and more. You can take advantage of these features when you write SuiteScript 2.1 scripts. Also consider converting your existing SuiteScript 2.0 scripts to SuiteScript 2.1, since some of these new features may help you improve performance or refactor your code.

The following sections include examples of using ECMAScript features supported in SuiteScript 2.1:

For more information about new language features, see JavaScript language resources.

Related Topics

General Notices