Code review Monday morning. A junior dev shows me his React component. Clean, hooks properly separated, state management looks fine. I ask him to explain why his useEffect has an empty dependency array. He hesitates. "So it runs only once." Alright, but why? What happens if you add a dependency? Silence. He didn't know. Claude wrote the hook, he copied it, it worked. Six months of React and he'd never written a raw addEventListener.

JavaScript is the most copy-pasted language on the planet. It was true with Stack Overflow, it's worse with AI. The language is everywhere — front-end, back-end, mobile, serverless, build scripts — and that ubiquity creates an illusion: you think you know JS because you run JS code. But if you don't understand the event loop, closures, the behavior of this, or the difference between == and ===, you're building on sand. This article explains how to use Claude to actually learn JavaScript — the language, not whatever framework is trending this month.

Why learn JavaScript in 2026 despite AI

"AI writes JS better than me, why bother?" Three pragmatic reasons.

1. JavaScript has more traps than any other mainstream language. Type coercion, this changing based on call context, hoisting, temporal dead zone, prototypes vs classes. AI generates code that avoids these traps — but the day you need to debug legacy code full of var declarations and 6-level nested callbacks, you're the one reading the code, not Claude.