Built-in blocks, objects and functions

Blockly

If you’re coding in Blockly the functionality is provided by the predefined blocks available in the individual categories listed on the left side of the editor. New blocks are being added constantly with almost every update.


JavaScript

When using JavaScript you have access to all objects and methods provided by the CoSpaces Scripting API as well as JavaScript’s built-in objects and functions/methods listed below.


TypeScript

If you decide to write code in TypeScript you have access to all JavaScript functionality. This is because TypeScript is a superset of JavaScript, means all valid JavaScript is also valid TypeScript but not the other way around.
But now you have also access to additional features provided by the TypeScript language listed here in the handbook section. To enable the TypeScript transpiler and editor make sure the editor is set to “TS”.