There are lots of free JavaScript Tutorial available from Internet, for example JavaScript Wiki or w3schools JS Tutorial. You only need to read the JavaScript grammar part. The other parts are not applicable to BOY.
Please notice that the JavaScript in BOY is not executed in an environment of browser, so the
objects such as document
and methods such as alert()
, confirm()
are not available for BOY, but the general JavaScript Objects such as Date
, Array
,
Math
are still available. This is an example showing the current datetime on a Label widget.
widget.setPropertyValue("text", new Date().toString());