Simple Stack Example
<HTML> <HEAD> <TITLE> Simple Stack Example </TITLE> </HEAD> <BODY> <H1> <SCRIPT> var stack = new Array(); stack.push("Me", "Two"); for (var i = 0; i < stack.length; i++){ document.write(stack[i] + "<br>"); } document.write (stack.pop() + "<br>"); for (var i = 0; i < stack.length; i++){ document.write(stack[i] + "<br>"); } </SCRIPT> </H1> </BODY> </HTML>