Reputation: 13
Why does this pop method returns: [type Function]
var possibles:Array=new Array(1,2,3,4);
function testpop()
{
trace( possibles.pop );
}
testpop();
This code written in action script 2
Upvotes: 1
Views: 83
Reputation: 47137
Cause it's a function remember to call it:
var possibles:Array=new Array(1,2,3,4);
function testpop()
{
trace( possibles.pop() );
}
testpop();
Upvotes: 1