Simple Stack Example : Stack : Language Basics JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Language Basics » Stack »

 

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>
           
       



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Language Basics
» Stack