An interactive visualization of the Stack data structure with real-time operations.
- Push elements onto the stack
- Pop elements from the stack
- Peek top element
- Clear entire stack
- Randomize stack values
- Visual representation with animations
- Operation log tracking
- Surprise element feature 🎁
- HTML
- CSS
- JavaScript
- Node.js (optional backend API)
- index.html — UI and layout
- style.css — styling and animations
- app.js — front-end stack logic
- app_api.js — API-based stack operations
- server.js — backend server (Express)
Open index.html directly in a browser.
npm install -g http-server
http-server ./stack -p 8080Open: http://localhost:8080
npm install
node server.jsOpen: http://localhost:3004
## 🎯 Description
This project demonstrates how a stack works using a visual interface.
It follows the **LIFO (Last In First Out)** principle and helps in understanding stack operations interactively.
## 👨💻 Author
Dheeraj