var stack = new Array();
var ii = 0;
function pushTutor(item) {
var jj = stack.length;
for(ii=0;ii<jj;ii++) {
stack.push(item);
alert(stack);
}
}
I remember the stack.length cause the issue which is not able to loop at all. What is the solution for this?
pushdoes exactly this, no need for loop at all.