There are a number of areas within Forsta Plus where JavaScript can be used instead of JScript.Net. This part of the documentation lists the differences between the two scripts and provides examples of usage.
Generally speaking, it is better to use JavaScript where necessary over JScript.Net. Some of the reasons for this recommendation are:
The JScript language is no longer being developed by Microsoft.
JavaScript is a much more popular language which makes it a more transferable skill and easier to find supporting tutorials and online examples.
JavaScript supports the ECMAScript standard, ES6, which bring significant updates and features to the JavaScript engine. Feature highlights that ES6 brings are summarized on this external website.
Unlike JavaScript, JScript execution is not supported on some mobile devices. This makes it unsuitable for use with CAPI devices.
JScript does not work on Linux environments. This means that Forsta Plus surveys written with JScript will not be compatible with Linux installations of Forsta Plus.
New features added into Survey Designer may only be available in surveys using the JavaScript engine, and this will become more commonplace over time.
A survey-level setting must be enabled to allow use of the JavaScript engine. The setting is located on the Survey Settings > General Options tab. When this setting is enabled JavaScript can operate in all channels (CAWI, CAPI, CATI, Self-completion/AskMe App).
Notes
For Offline Apps (CAPI, AskMe, the JavaScript engine MUST be used.
For surveys that have the JavaScript engine mode enabled, the condition builders automatically generate JavaScript compatible syntax. The Scripting reference guide has also been updated to include JavaScript compatible code examples.
Try-catch blocks must not be used in JavaScripts as errors will then be created.
Information on syntax conversion between JScript and JavaScript can be found on the page, Syntax and Behavior Differences.