Console Application

Job ID: 36227913

Budget: ₹600 – ₹800 INR

To do in NodeJS using jsdocs
# Console Application

## DataStructure:

- Need to implement Stack & Queue methods:
- push, pop, isEmpty, size
- Underlying data structure for both should be LinkedList.
- Type Definition( using @type, @param) should work.
- Implement a getIterator() for each.
- Returns object of {hasNext(): boolean, next: DataType}


## Console App

- At a time only 1 DS will be present.
-

- Commands:

> `new stack` : Create a new stack. If any DS already existing, then flush the same.
> `new queue` : Create a new queue. If any DS already existing, then flush the same.
> `push 1234` : push the element (string) to the underlying DS. (IF underlying DS not present, handle)
> `pop` : pop element from underlying stack. (IF underlying DS not present, handle)
> `print` : traverse underlying DS. print each element on new line.
> `flush` : pop all elements and print on new line.
> `exit` : exit the console app.
Related categories: JavaScript Node.js Typescript