Decoding JS

Explore JavaScript and understand
Why Your Code Always Breaks on Monday.

Chapter 1: How JavaScript Works?

JS Execution: Synchronous & Single-Threaded – No Multitasking Here!

Chapter 2: How JavaScript Code Executes?

Learn about different data types in JavaScript like strings, numbers, objects, and arrays.

Chapter 3: Hoisting in JS

See how JavaScript lifts variables and functions to the top before your code starts running!

Chapter 4: How Functions Work in JS?

JavaScript functions, from declarations to invocations and everything in between!

Chapter 5: Window and This Keyword in JS

Explore how the window object and the this keyword shape the context of your code, pointing to the world and yourself!

Chapter 6: Undefined Vs Not Defined in JS

Undefined and Not defined—they may sound similar, but they behave like code opposites!

Chapter 7: Scope Chain and Lexical Environment

Scope Chain & Lexical Environment acting as JS's Variable Roadmap

Chapter 8: Let and Const in JavaScript

let and const brings block-scoping to the party, keeping your variables in check!

Chapter 9: Block Scope & Shadowing in JS

How block scope and shadowing let variables hide in different parts of your code, only to reappear when you least expect it!

Chapter 10: Closures in JavaScipt?

How closures let functions “remember” variables from their outer scope, even after the outer function has finished!

Chapter 11: setTimeout + Closures in JavaScipt

How setTimeout and closures work together to keep functions waiting while remembering their environment!

Chapter 12: First-Class & Anonymous Functions

JS treats functions as first-class citizens and lets you create anonymous functions on the fly!

Chapter 13: Callback Functions in JavaScipt

Callback functions let you pass the work to be done later, keeping your code neat and organized!

Chapter 14: Asynchronous JavaScript & Event Loop in JS

How JavaScript handles tasks asynchronously with the Event Loop, making sure nothing gets stuck!

Chapter 15: JavaScript Engine & V8 Architecture

How the JavaScript engine, with Google’s V8, turns your code into lightning-fast machine language!

Chapter 16: setTimeout Issues in JS

Learn about setTimeout issues and why your timing might not always be on point!

Chapter 17: Higher-Order Functions & Functional Programming

How higher-order functions and functional programming make your code more elegant and reusable!

Chapter 18: Map, Filter and Reduce in JavaScript

How map, filter, and reduce transform arrays into something more efficient and fun to work with!

Chapter 19: Callback Hell in JavaScript

Learn how to avoid the chaos of callback hell and write cleaner, more manageable code!

Chapter 20: Promises, Promise Chaining, Promise APIs and Error Handling

Dive into Promises, chaining, and error handling to make your asynchronous code cleaner and more predictable!

Chapter 21: Async and Await in JS?

Simplify your asynchronous code with async and await, making it read like synchronous logic!