Learn JavaScript with code explained on every line, by Muazim Maqbool.
"JavaScript from Scratch" is a repository that provides beginners with a comprehensive introduction to the fundamentals of the JavaScript programming language. The repository includes step-by-step tutorials, code examples, and exercises that cover the basics of syntax, data types, control flow, functions, objects, APIs, asynchronous programming, and more. The goal is to help users build a strong foundation in JavaScript and gain confidence in their ability to write basic scripts and applications.
This repository is designed to be accessible to anyone with little or no prior programming experience, making it a great resource for those who are just starting to learn JavaScript.
- Line-by-line code explanations: Every concept is demonstrated with well-commented code for easy understanding.
- Covers core JavaScript fundamentals: Syntax, data types, variables, functions, control flow, objects, arrays, and more.
- Modern JavaScript concepts: Includes ES6+ features such as arrow functions, spread operator, destructuring, modules (import/export), and more.
- Asynchronous programming: Promises, async/await, and working with APIs using
fetch
. - Functional programming: An introduction to functional programming paradigms in JavaScript.
- Practical examples: Realistic code samples and exercises to reinforce learning.
- API interaction: Demonstrates how to fetch, update, and send data to APIs using modern JavaScript methods.
Javascript-from-scratch/
│
├── 01_basics.html
├── 02_variables.html
├── 36 promises example.html
├── 36.1 promises examples.html
├── 63 import.html
├── 71 shallowAndDeepCopy.html
├── 74_Functional_Programming.html
├── API/
│ ├── 1 API.html
│ ├── 3 fetch() part-3.html
│ ├── 4 Fetch() data to server.html
│ ├── 7 fetch() PATCH method.html
│ ├── 9 fetch() Example 2.html
│ ├── 9.1 fetch().html
│ ├── 10 fetch() using async-await.html
│ └── ...
└── README.md
-
Clone the repository:
git clone https://github.com/muazimmaqbool/Javascript-from-scratch.git cd Javascript-from-scratch
-
Open any HTML file in your browser:
- Each file covers a specific JavaScript topic or concept.
- Files are self-contained with comments and explanations.
- Variables, Data Types, and Operators
- Control Flow (if/else, switch, loops)
- Functions and Scope
- Objects and Arrays
- ES6 Features (let/const, arrow functions, template literals)
- Promises and Async/Await
- APIs and Fetch
- Shallow vs Deep Copy
- Functional Programming Concepts
Contributions, suggestions, and improvements are welcome! Feel free to open issues or submit pull requests.
Muazim Maqbool
This project is open source and available under the MIT License.