An interactive, modern web application for learning JavaScript through hands-on examples and live code execution.
- 🎯 Interactive Code Editor: Write and run JavaScript code directly in your browser
- 📚 Comprehensive Tutorials: Cover JavaScript fundamentals to modern ES6+ features
- 🎨 Beautiful UI: Modern gradient design with smooth animations
- 📱 Responsive: Works great on desktop and mobile devices
- ⚡ Real-time Execution: See your code results immediately
- 🌐 HTML Examples: Standalone HTML pages showing JavaScript in real web applications
- JavaScript Basics - Variables, data types, operators, and syntax
- Variables - let, const, var, and data types
- Operators - Comparison, logical, and assignment operators
- Conditionals - if/else, ternary operators, and switch statements
- Loops - for, while, do-while, and for...of loops
- Functions - Declaration, expressions, arrow functions, and parameters
- Arrays - Array methods, iteration, and manipulation
- Objects - Object creation, methods, and destructuring
- Modern JavaScript - Template literals, spread operator, and async/await
- Node.js (version 14 or higher)
- npm or yarn
- Install dependencies:
npm install- Start the development server:
npm start- Open http://localhost:3000 in your browser
npm run buildThis creates an optimized production build in the build folder.
- React - UI framework
- CodeMirror - Interactive code editor
- Lucide React - Beautiful icons
- CSS3 - Modern styling with gradients and animations
- Select a topic from the sidebar
- Read through the explanations and examples
- Modify the code in the interactive editor
- Click "Run Code" to execute and see the output
- Experiment with different values and approaches
- Visit /examples/for standalone HTML demos showing JavaScript in action
The public/examples/ directory contains fully interactive HTML pages demonstrating JavaScript concepts:
- DOM Manipulation - Dynamically modify webpage content
- Interactive Styling - Change colors, sizes, and styles
- Event Handling - Respond to user interactions
- Form Validation - Real-time input validation
- Todo List App - Complete CRUD application
- Number Guessing Game - Game logic with loops and conditionals
- Counter & Timer - setInterval and setTimeout examples
- Image Gallery - Array manipulation and navigation
- Temperature Converter - Mathematical operations and functions
Access these at http://localhost:3000/examples/ when running the dev server.
JAVASCRIPT/
├── public/
│   ├── examples/             # Standalone HTML examples
│   │   ├── index.html        # Examples homepage
│   │   ├── dom-manipulation.html
│   │   ├── styling-demo.html
│   │   ├── events-demo.html
│   │   ├── form-validation.html
│   │   ├── todo-app.html
│   │   ├── number-game.html
│   │   ├── counter-timer.html
│   │   ├── image-gallery.html
│   │   └── temperature-converter.html
│   └── index.html
├── src/
│   ├── components/
│   │   └── CodeEditor.js     # Interactive code editor component
│   ├── data/
│   │   └── tutorials.js      # Tutorial content and structure
│   ├── App.js                # Main application component
│   ├── index.js              # Application entry point
│   └── index.css             # Global styles
├── package.json
└── README.md
Feel free to enhance the tutorials, add new topics, or improve the UI!
MIT License - feel free to use this project for learning and teaching.
Happy Learning! 🚀