Using Pop in SmartMS
Example code : Using Pop in SmartMS
var
fruits : array of String = ["Banana", "Orange", "Apple", "Mango", "Banana", "Abacate", "Apple"];
begin
fruits.pop();
for var Index := Low(fruits) to High(fruits) do
WriteLn( fruits[Index] );
Banana
Orange
Apple
Mango
Abacate
------------
JS output:
var fruits = [];
var fruits = ["Banana","Orange","Apple","Mango","Banana","Abacate","Apple"].slice();
var Index = 0;
$Pop(fruits,"");
var $temp24;
for(Index = 0,$temp24 = fruits.length;Index<$temp24;Index++) {
WriteLn($DIdxR(fruits,Index,""));
}