The history of the formation of the modern syntax of a programming language is akin to cognition of the processes of formation of the Universe. What and how it was at the beginning ... But now everything is simple and affordable.
The algorithm in the end is always a sequential chain of commands. Parallelism in programming is a combination of somehow combined sequences. A cyclic algorithm has never been more practical than a sequential or parallel chain of commands. Labels, transitions and conditions - everything was enough for any solution. Functional languages deprived these ideas of significance, but the need to repeat sections of code remained.
Browser: DOM, its language + server
JavaScript , . - "" "", , , , JavaScript, , .
JavaScript , , DOM . , - , , AJAX.
JavaScript-, , , , HTML-, . . JavaScript , , .
JavaScript, .
JavaScript
, (for, while, do while, ...) - () , , , .
: , . , JavaScript, . « » . «» JavaScript. JavaScript .
JS - : , . , . ? , .
: , ( ) - . " ". JavaScript foreach prop in object, array.forEach(...).
: , , , : - , :
JavaScript - . : , , , .
-
JavaScript foreach :
. . .
JavaScript for:
, . , . .
while JavaScript , . - , , :
, while, JavaScript , , . . , do while, , .
( ) - , , . - , . , (), , .
JavaScript . . , . - -. JavaScript for .
. , . . , , . JavaScript for, .
,
JavaScript-, - , , .
, . , JavaScript split():
var cResult = '9,8,7,6,5,4';
var aResult = cResult.split(',');
, , ',' .
, split(), JavaScript , , - . , , .
allt(), padc(), padl() padr() - , JavaScript, , . - JavaScript-. , , .
16- 10- , , , do while. .
-
JavaScript - , , , .
, JS, PHP ( , , "" ), , , , .
, , , ( ) - , , . - . : . , , - .
With this approach, the concern of the point is to manifest your essence through your methods. When a point is in a supersystem, then the function of the system is to manifest its essence as a totality of the entities of its constituent points.
This approach is old as the idea of programming languages, but still has not found its adequate reflection in programming. Many programmers think correctly, but the result of their work leaves much to be desired.
It is sometimes useful to put on a blindfold to see the world!