for var in Array



for var in Array
Pas2JS pascal source code
var a := [1, 2, 3]; for var i in a do WriteLn(i); var ad: array of String; ad.Add('one', 'two'); for var i in ad do WriteLn(i); procedure WriteLnThem(const oa: array of const); begin WriteLn(oa.Length); for var i in oa do WriteLn(i); end; WriteLnThem([]); WriteLnThem(['alpha', 2, False, 'four']); {<<< RESULT - CONSOLE LOG >>> ----------------------------- 1 2 3 one two 0 4 alpha 2 False four ----------------------------- {<<<<<<<<< THE END >>>>>>>>>}