A comprehensive JavaScript reference that covers 33+ core concepts from primitives and closures to async patterns and functional programming. You'd reach for this when debugging weird type coercion behavior, explaining why `typeof null` returns "object", or teaching someone the difference between the call stack and event loop. It includes practical code examples for everything from the basics (var vs let vs const) to trickier stuff like microtasks vs macrotasks and Promise combinators. The scope and closure examples are solid, and the async/await section covers parallel execution patterns. It's structured more like a cheat sheet than a tutorial, so it works best when you already know what concept you're looking for rather than learning JavaScript from scratch.

skills.sh installs
356
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill javascript-mastery --agent claude-code

Installs into .claude/skills of the current project.

Files

🧠 JavaScript Mastery

33+ essential JavaScript concepts every developer should know, inspired by 33-js-concepts.

When to Use This Skill

Use this skill when:

  • Explaining JavaScript concepts
  • Debugging tricky JS behavior
  • Teaching JavaScript fundamentals
  • Reviewing code for JS best practices
  • Understanding language quirks

1. Fundamentals

1.1 Primitive Types

JavaScript has 7 primitive types:

// String
const str = "hello";

// Number (integers and floats)
const num = 42;
const float = 3.14;

// BigInt (for large integers)
const big = 9007199254740991n;

// Boolean
const bool = true;

// Undefined
let undef; // undefined

// Null
const empty = null;

// Symbol (unique identifiers)
const sym = Symbol("description");

Key points:

  • Primitives are immutable
  • Passed by value
  • typeof null === "object" is a historical bug

1.2 Type Coercion

JavaScript implicitly converts types:

// String coercion
"5" + 3; // "53" (number → string)
"5" - 3; // 2    (string → number)

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Category
Debugging
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618

Recommended

More Debugging
1davila7 avatarmodel-mergingdavila7/claude-code-templatesMerge multiple fine-tuned models using mergekit to combine capabilities without retraining. Use when creating specialized models by blending domain-specific exp356skills.sh installs
2jezweb avataragent-developmentjezweb/claude-skillsDesign and build custom Claude Code agents with effective descriptions, tool access patterns, and self-documenting prompts. Covers Task tool delegation, model s356skills.sh installs
3jezweb avataroauth-integrationsjezweb/claude-skillsImplement OAuth 2.0 authentication with GitHub and Microsoft Entra (Azure AD) in Cloudflare Workers and other edge environments. Covers provider-specific quirks356skills.sh installs
4davila7 avatarblip-2-vision-languagedavila7/claude-code-templatesVision-language pre-training framework bridging frozen image encoders and LLMs. Use when you need image captioning, visual question answering, image-text retrie355skills.sh installs
5jezweb avatarauto-animatejezweb/claude-skillsZero-config animations for React, Vue, Solid, Svelte, Preact with @formkit/auto-animate (3.28kb). Prevents 15 documented errors including React 19 StrictMode bu355skills.sh installs
6jezweb avatardeveloper-toolboxjezweb/claude-skillsEssential development workflow agents for code review, debugging, testing, documentation, and git operations. Includes 7 specialized agents with strong auto-dis355skills.sh installs