Dynamic array instance using New in Pas2JS |
Top |
Result is: 10 and 20 ------------------------------------------------------------------------
In other words, in Pas2JS, if you want a new dynamic array instance, you use "new", if want to make a copy of a dynamic array, you have to use Copy() method, if you want to resize, you use SetLength() method. See the similar example at Copy() method.
JS output:
|