Jump to content

Arrays / Stacks in JavaScript. HELP!!!!


Guest Paul

Recommended Posts

Hi,anybody help me plzI would like to design a system that models the way the client browser works. THe system must allow user to enter a new URL into the system an deither go back to a URL loaded previous to the current URL or go forward to a URL loaded after the current URL.The storage mechanism must include two stacks (one backward and one forward) both of them must exhibit the behaviours:LIFOPop item from stackPush item from stackEmpty stack.So the backward stack stores items of previously visited URL and the forward stacks stores item moved from the backward stack to the forward stack.The system should allow to enter a new URL, recover URL from the backward stack, and recover URL from the forward stack.help me plz.....

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...