These can be “if-then” conditions, cycles that create a certain sequence of actions, mathematical calculations, etc.
On web pages, it is very often necessary to perform certain calculations.
For example, there are two text fields and you need to display the sum of the two numbers entered in the first two in the third text field.
Another situation, take some text string on a web page, you need to increase its size by 1.5 times. This can also be done mathematically by multiplying the current size by a factor of 1.5.
Processing and Validating Data in HTML Forms
User Interactions and Events
Different effects can appear on a web page, depending on what the user is doing.
Drop-down menu on the site on mouse over.
When you click on the button, hide or show some element on the page.
A pop-up window appears when the mouse cursor has moved outside the browser window.
Interact with HTML elements on the page and manipulate their content and styles.
When a certain event occurs (for example, a mouse click or any other), you can change the appearance (CSS styles) of elements on the page.
This is all done programmatically.
You can also add some HTML tags or attributes to them, also when a certain event occurs.
Add animation and various graphic effects to web pages.
Falling and moving objects. For example, snow on the site.
Another versatile tool for controlling robotics is the Cylon.js framework. It supports 36 different platforms. He is advised to choose for work in 2019. Supports declarative syntax, so it is relatively easy to use.