Contoh fungsi naskah array arg
var names:string[] = new Array("Mary","Tom","Jack","Jill")
function disp(arr_names:string[]) {
for(var i = 0;i<arr_names.length;i++) {
console.log(names[i])
}
}
disp(names)
Daniel Kristoffersen