Reactive programming
Reactive spreadsheet work is one of the extensions of the Script language compiled in JavaScript.
The reaction type allows you to define a variable as reactive. Its value changes each time the value of its assigned variables changes.
Example:
react A = B + C * 10
Each time B or C is assigned a new value, the formula is recalculated and A takes a new value.
By convention, reactive variables will be written in capital letters, even if any gap is recognized by the compiler.
You must assign output when a reactive variable controls a device or interacts with a web page.
Example:
A.output = 'function() {document.getElementById("sum").value = this.value;}';
You can use single quotation marks or line markers on multiple lines ~~ but do not use double quotation marks, as text can be converted to JavaScript code, and this is the case when it should not be.
The content of a reactive variable is updated only when the variables on which it depends change whether they are the same reactive. Imperative variables in a reactive formula behave as necessary in imperative code and do not affect other variables when their contents change.
But if you change the contents of a reactive variable after you change the contents of a simple variable, on which another reactive variable also depends, then it is the new value of the simple variable that will be taken into account in the update.