📁 Chapter-Wise Solutions for JavaScript Practice
This repository contains my personal solutions to JavaScript exercises from various chapters. Each chapter folder includes:
- 📝 A PDF file with exercise questions
- 📂 A
task/
folder containing solution files for each exercise - 📚 Chapters may be named as single numbers (
01
,02
, etc.) or ranges (06-08
) based on the content groupings.
These tasks are part of my learning journey to improve JavaScript fundamentals through consistent practice and organization.
- JavaScript (Vanilla)
- HTML (for test cases if required)
- PDF format (for questions)
- VS Code (for writing and testing code)
- Clone the repository:
git clone https://github.com/huzaifa-frontend/javascript-exercises-solutions.git
- Navigate into the chapter folder you want to explore:
cd javascript-exercises-solutions/Chapter 01 (Alerts)/Task 1
- Open the
.js
files in your code editor or run them in the browser/console for testing.
- ✅ Clean and readable solutions using modern JavaScript practices
- 🗂️ Chapter-wise separation for easy navigation
- 🧠 Logical naming of folders
- 📎 Accompanying PDF files for question reference
- 🧪 Some exercises may include testable HTML or console outputs
📦 javascript-exercises-solutions
┣ 📂 Chapter 01 (Alerts)
┃ ┣ 📂 Tasks
┃ ┗ 📄 Chapter 01 (Alerts).pdf
┣ 📂 Chapter 02 (Variables For Strings)
┃ ┣ 📂 Tasks
┃ ┗ 📄 Chapter 02 (Variables For Strings).pdf
┣ 📂 Chapter 03 (Variables For Numbers)
┃ ┣ 📂 Tasks
┃ ┗ 📄 Chapter 03 (Variables For Numbers).pdf
┣ 📂 Chapter 04 (Variable Names Legal & Illegal)
┃ ┣ 📂 Tasks
┃ ┗ 📄 Chapter 04 (Variable Names Legal & Illegal).pdf
┣ 📂Chapter 05 (Math Expressions)
┃ ┣ 📂 Tasks
┃ ┗ 📄 Chapter 05 (Math Expressions).pdf
┣ 📂 Chapter 06-08 (Math Expressions II & Concatenating Text Strings)
┃ ┣ 📂 Tasks
┃ ┗ 📄 Chapter 06-08 (Math Expressions II & Concatenating Text Strings).pdf
┣ 📂Chapter 09-11 (User Input & Conditional Statement)
┃ ┣ 📂 Tasks
┃ ┗ 📄 Chapter 09-11 (User Input & Conditional Statement).pdf
┣ 📂Chapter 12-13 (If Else & Else If Statement)
┃ ┣ 📂 Tasks
┃ ┗ 📄 Chapter 12-13 (If Else & Else If Statement).pdf
┣ 📂 Chapter 14-16 (Nested If & Arrays Adding And Removing Elements)
┃ ┣ 📂 Tasks
┃ ┗ 📄 Chapter 14-16 (Nested If & Arrays Adding And Removing Elements).pdf
┣ 📂 Chapter 17-20 (Arrays & For Loops & Nested For Loops)
┃ ┣ 📂 Tasks
┃ ┗ 📄 Chapter 17-20 (Arrays & For Loops & Nested For Loops).pdf
┣ 📄 README.md
┗ 📄 LICENSE
- Exercises sourced from personal notes, assignments, and curated JavaScript learning material.
- All solutions written and structured by Muhammad Huzaifa Karim.
This repository is licensed under the MIT License – feel free to explore, learn, and contribute.
Muhammad Huzaifa Karim
GitHub Profile
Have suggestions, found a bug, or want to collaborate? Open an issue or reach out via GitHub.
© 2025 Muhammad Huzaifa Karim