Skip to content

A comprehensive JavaScript reference of core concepts, from primitives and closures to async/await and functional patterns.

CCM score
63 of 100
skills.sh installs
358
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers fundamentals such as primitive types, type coercion, and equality operators, with a rule to prefer ===
  • Includes examples on scope, closures, hoisting, this, the event loop, promises, async/await, and pure functions
  • Explains quirks like falsy values, typeof null, and the difference between Object.is and strict equality
  • Designed for explaining JavaScript concepts, debugging tricky behavior, and teaching language fundamentals

Install

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

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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)

Details

Repository
github.com/davila7/claude-code-templates
Category
Frontend & UI Code
First seen
Jun 3, 2026

Questions

What does the javascript-mastery skill cover?

javascript-mastery is a comprehensive JavaScript reference covering more than 33 essential concepts, from primitives and closures to async/await and functional programming. It is meant for explaining JS concepts, debugging JavaScript issues and teaching JavaScript fundamentals.

How do I install the javascript-mastery skill?

Run npx -y skills add davila7/claude-code-templates --skill javascript-mastery -y in a project to install it. Once installed, javascript-mastery lets the agent explain JavaScript concepts and debug tricky JS behavior.

Where does javascript-mastery sit in its category?

javascript-mastery is listed in the Frontend and UI Code category on Claude Marketplaces, alongside vercel-react-best-practices, web-design-guidelines and design-taste-frontend. Its distinct focus is a broad JavaScript concept reference rather than React or UI design guidance.

More from davila7/claude-code-templates

All 398

Similar to Javascript Mastery

More Frontend & UI Code