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.
The repository is organized by topic, with each file covering a specific concept:
variables.js
—let
,const
,var
, naming conventions, and variable hoistingdata-types.js
— Strings, Numbers, Booleans, Null, Undefined, Symbols, Objectsoperators.js
— Arithmetic, Assignment, Comparison, Logical, Bitwise, etc.type-coercion.js
— Implicit & explicit conversion, truthy/falsy values
conditionals.js
—if-else
,switch
, ternary operatorloops.js
—for
,while
,do-while
,for-in
,for-of
functions.js
— Function declaration, expressions, arrow functions, IIFEs
arrays.js
— Array methods:map
,filter
,reduce
,push
,pop
, etc.objects.js
— Object creation, destructuring,this
, keys & valuesscope.js
— Function scope, block scope, lexical scope, closureshoisting.js
— Variable & function hoisting behavior
callbacks.js
promises.js
async-await.js
event-loop.js
— Call stack, event queue, task vs microtaskDOM.js
— DOM selection, manipulation, eventsfetch-api.js
— Basic usage with async/awaitclasses.js
— ES6 classes, constructor, inheritance, static methodsprototypes.js
— Prototypal inheritance, prototype chain
- Clone this repository:
git clone https://github.com/MSaini-Dev/Javascript-Notes.git