Array JavaScript Tutorial

< html>

Example



var stack = new Array;
stack.push("A");
stack.push("B");
stack.push("C");
document.write("stack:"+stack.toString());
document.write("
");
var vItem = stack.pop();
document.write("vItem:"+vItem);
document.write("
");
document.write("stack:"+stack.toString());