Skip to main content

JavaScript

JavaScript in Sciter is a superset of ES2020 specification.

Here is the list of extra features added to JS core by Sciter:

Predefined constants:

  • __FILE__ - url of current file that is being compiled;
  • __DIR__ - folder part of the __FILE__, always ends with / ;
  • __FUNC__ - function name being compiled if available, otherwise one of <anonymous>, <eval>, <script> or <module>;
  • __LINE__ - line number in source file;

Data Persitence:

Built-in (JS runtime integrated) persistence, see Storage.

Reactive and Components support: