Code Visualizer is an interactive web application designed to help users visualize, understand, and debug JavaScript code execution. Built with React, it provides a user-friendly interface for stepping through code, observing variable changes, and exploring how code flows in real time. This tool is ideal for students, educators, and developers who want to gain deeper insights into how JavaScript code runs under the hood.
- Step-by-Step Execution: Run JavaScript code line by line to see how each statement affects the program state.
- Variable Tracking: Watch variables and their values update as the code executes.
- Visual Call Stack: Observe function calls and the call stack in real time.
- Error Highlighting: Instantly see where errors occur and what caused them.
- Interactive Editor: Write, edit, and execute JavaScript code directly in the browser.
- Educational Tools: Great for learning programming concepts and debugging code visually.
- Node.js (v14 or higher recommended)
- npm (v6 or higher)
-
Clone the repository:
git clone https://github.com/your-username/code-visualizer.git cd code-visualizer -
Install dependencies:
npm install
Start the development server:
npm startOpen http://localhost:3000 in your browser to use Code Visualizer.
To create an optimized production build:
npm run buildsrc/- React source code and componentspublic/- Static assets and HTML templatepackage.json- Project metadata and dependencies
Contributions are welcome! Please open issues or submit pull requests for new features, bug fixes, or improvements.