Skip to content

JavaScript

Node-App uses Blockly's built-in JavaScript syntax blocks, including Logic, Loops, Math, Text, List, Variables and Functions. The usage of these blocks is identical to Blockly, so they will not be explained further in this document.

It should be noted that Blockly's array or text character indexing starts with 1, instead of the usual 0 used in most programming languages.

In addition, Node-App adds some useful function blocks:

  • Text

    1. A text concatenation block, and its variable form, for easily combining text.

      Connect multiple text blocks to combine text. For example, to add parentheses around the text variable item:

  • Variable

    1. A block to get variable attributes using the dot operator.

      For example, to get the name attribute of the variable item: