Skip to content

MSaini-Dev/Javascript-Notes

Repository files navigation

📘 JavaScript Notes

Welcome to the JavaScript Notes repository!
This is a beginner-to-advanced guide covering all the core concepts of JavaScript with clean and well-commented code examples. Ideal for developers, students, and interview preparation.


📂 Repository Structure

The repository is organized by topic, with each file covering a specific concept:

✅ Basics

  • variables.jslet, const, var, naming conventions, and variable hoisting
  • data-types.js — Strings, Numbers, Booleans, Null, Undefined, Symbols, Objects
  • operators.js — Arithmetic, Assignment, Comparison, Logical, Bitwise, etc.
  • type-coercion.js — Implicit & explicit conversion, truthy/falsy values

🧠 Control Flow

  • conditionals.jsif-else, switch, ternary operator
  • loops.jsfor, while, do-while, for-in, for-of
  • functions.js — Function declaration, expressions, arrow functions, IIFEs

🧱 Intermediate

  • arrays.js — Array methods: map, filter, reduce, push, pop, etc.
  • objects.js — Object creation, destructuring, this, keys & values
  • scope.js — Function scope, block scope, lexical scope, closures
  • hoisting.js — Variable & function hoisting behavior

🚀 Advanced

  • callbacks.js
  • promises.js
  • async-await.js
  • event-loop.js — Call stack, event queue, task vs microtask
  • DOM.js — DOM selection, manipulation, events
  • fetch-api.js — Basic usage with async/await
  • classes.js — ES6 classes, constructor, inheritance, static methods
  • prototypes.js — Prototypal inheritance, prototype chain

🛠 How to Run

  1. Clone this repository:
    git clone https://github.com/MSaini-Dev/Javascript-Notes.git

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published