Anything array-based really doesn't work at all unless you know how arrays work in JS.
The temp is case-sensitive, and it's length not size() in JS. What does work is:
PHP Code:
function onCreated() {
temp.t = ["Paul", "frank", "Sam"];
for (temp.I=0; temp.I < temp.t.length; temp.I++){
echo(temp.t[temp.I]);
}
}
The only GS2 function that is currently implemented is echo().
Keep in mind this emulator is still very much a work-in-progress.