While the Servoy platform is based entirely in Java, one does not need to write any Java during the course of development or deployment.
Instead, all business logic is implemented using Javascript. Javascript was selected because it is an internet standard, easy to learn and as such, the most widely used scripting language on the planet. Javascript is far more productive than coding in pure Java and Servoy provides robust APIs with which to quickly and easily implement business logic.
Note
Developers who are familiar with Javascript may cite issues with browser support and speed of execution.
However, it is worth noting that Servoy does not deploy any Javascript. All code written in Servoy is deployed using Mozilla's Rhino project, which is an open-source, Java-based Javascript implementation.
This means that:
Scope defines the domain in which code is executed and subsequently determines the namespace by which elements are accessed. Javascript code (functions and variables) may be defined in the following two scopes:
globals.createNewCustomer(); // invokes the global method
forms.customers.createNewCustomer; // invokes the form method from another scope