...
The following sections describe the attributes and child elements of an element of type ScriptType
.
Localtabgroup | ||||||
---|---|---|---|---|---|---|
Expand | ||||||
| ||||||
|
Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
|
...
The default scripting language is JavaScript (language=”javascript”
). Therefore all of the sample scripts are written in JavaScript, which is based on the ECMAScript standard. The following table illustrates the relationship between JRE version and ECMAScript version:
Java Version | Default Script Engine | ECMAScript Version | ||
---|---|---|---|---|
Java 11+ | Nashorn | ECMAScript 5.1 (plus some features of ECMAScript 2015 aka ECMAScript 6) | ||
Java 15+ | None |
|
Info |
---|
Nashorn documentation from OracleAn introduction to Nashorn from Oracle: Part 1: Introducing JavaScript, ECMAScript, and Nashorn |
...