javascript-questions

A long list of (advanced) JavaScript questions, and their explanations :sparkles:

22 articles 65.3k View on GitHub ↗
22 articles
How the JavaScript Spread Operator Works with Objects and Arrays

Discover how the JavaScript spread operator works with objects and arrays. Learn to create shallow copies efficiently and expand iterables for cleaner code.

deep-dive
Mar 4, 2026
Differences Between var, let, and const Declarations in JavaScript

Understand the key differences between JavaScript var let and const declarations including hoisting scope and mutability Learn how to choose the right declaration for your code

deep-dive
Mar 4, 2026
How JavaScript Handles Primitive Wrapper Types: Automatic Boxing vs. Explicit Wrappers

Discover how JavaScript handles primitive wrapper types, from automatic boxing to explicit wrapper objects, and understand their unique behaviors.

deep-dive
Mar 4, 2026
for...in vs for...of Loops in JavaScript: Key Differences Explained

Understand the key differences between JavaScript for...in and for...of loops. Learn when to use each to iterate over object properties or iterable values efficiently.

deep-dive
Mar 4, 2026
How Does the JSON.stringify Replacer Function Work: Array vs Function Guide

Learn how JSON.stringify replacer functions work with arrays and callback functions. Filter and transform data for precise JSON output. Master JavaScript serialization.

deep-dive
Mar 4, 2026
What Are Template Literals and Tagged Template Functions in JavaScript?

Master JavaScript template literals and tagged template functions. Learn how to embed expressions and customize string output for cleaner, more powerful code.

deep-dive
Mar 4, 2026
How Object.defineProperty Affects Object Enumerability in JavaScript

Learn how Object.defineProperty affects object enumerability in JavaScript. By default, it creates non-enumerable properties hidden from loops but accessible directly.

deep-dive
Mar 4, 2026
How Array.prototype.map Handles Undefined Return Values in JavaScript

Discover how Array.prototype.map handles undefined return values in JavaScript. Learn how it creates new arrays with undefined entries for missing returns.

deep-dive
Mar 4, 2026
sessionStorage vs localStorage: Understanding the Key Differences

Learn the key differences between sessionStorage and localStorage in JavaScript. Understand data lifetime and choose the right storage for your web application.

deep-dive
Mar 4, 2026
How JavaScript Generators and Yield Work: A Complete Guide to `function*` and Iteration Control

Understand how JavaScript generators and yield work with function* and iteration control. Master pausing and resuming function execution for efficient code.

deep-dive
Mar 4, 2026
What Happens When You Use "use strict" Mode in JavaScript

Discover what happens when you use "use strict" in JavaScript. Learn how it enforces safer coding, prevents errors, and avoids accidental global variables for cleaner code.

deep-dive
Mar 4, 2026
JavaScript Type Coercion with the `+` Operator: A Complete Guide

Master JavaScript type coercion with the + operator. Learn how it concatenates strings or adds numbers using ToPrimitive and ToNumber abstract operations. Get the complete guide now.

deep-dive
Mar 4, 2026

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →