Skip to content

muazimmaqbool/Javascript-from-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Javascript-from-scratch

Learn JavaScript with code explained on every line, by Muazim Maqbool.

Overview

"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.


Features

  • 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.

Directory Structure

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

Getting Started

  1. Clone the repository:

    git clone https://github.com/muazimmaqbool/Javascript-from-scratch.git
    cd Javascript-from-scratch
  2. Open any HTML file in your browser:

    • Each file covers a specific JavaScript topic or concept.
    • Files are self-contained with comments and explanations.

Example Topics Covered

  • 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

Contribution

Contributions, suggestions, and improvements are welcome! Feel free to open issues or submit pull requests.


Author

Muazim Maqbool


License

This project is open source and available under the MIT License.


About

Learn Javascript with code explained on every line

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published