javascript-mastery

Featured

Comprehensive JavaScript reference covering 33+ essential concepts every developer should know. From fundamentals like primitives and closures to advanced patterns like async/await and functional programming. Use when explaining JS concepts, debugging JavaScript issues, or teaching JavaScript fundamentals.

AI & Automation 33,961 stars 4034 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# ๐Ÿง  JavaScript Mastery > 33+ essential JavaScript concepts every developer should know, inspired by [33-js-concepts](https://github.com/leonardomso/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: ```javascript // 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: ```javascript // String coercion "5" + 3; // "53" (number โ†’ string) "5" - 3; // 2 (string โ†’ number) // Boolean coercion Boolean(""); // false Boolean("hello"); // true Boolean(0); // false Boolean([]); // true (!) // Equality coercion "5" == 5; // true (coerces) "5" === 5; // false (strict) ``` **Falsy values** (8 total): `false`, `0`, `-0`, `0n`, `""`, `null`, `undefined`, `NaN` ### 1.3 Equality Operators ```javascript // == (loose equality) - coerces types null == undefined; // true "1" == ...

Details

Author
davila7
Repository
davila7/claude-code-templates
Created
1 years ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content โ€” not just same category