Pas2JS pascal source code
Type
TElements = (et1, et2);
For var Element In TElements do
WriteLn(Element);
{<<< RESULT - CONSOLE LOG >>>
-----------------------------
0
1
-----------------------------
{<<<<<<<<< THE END >>>>>>>>>}
function WriteLn(value) {
if (window.console) { window.console.log(value); } };
var TElements = [ "et1", "et2" ];
var Element = 0;
/* <<< main JS >>> */
for(Element=0;Element<=1;Element++) {
WriteLn(Element);
}