Problem Solvers

JavaScript · 20 real answers

Home › Courses › JavaScript › Problem Solvers
🟨 Problem Solvers · 20 answers

JavaScript problems.
Solved in 4 minutes each.

Every page here answers one specific question — the exact thing you typed into Google. No filler. Just the answer, working code, the reason it works, and the mistakes to avoid. This is what you need when this is undefined, the loop closes over the wrong variable, or the promise never resolves.

~4 min per page All levels ES2024 · modern
JavaScript path Scoping & functions Async Arrays & objects Modern syntax Errors & gotchas

How to use this page. Find your problem in the list below. Click it. The answer is the first thing on the page — no scrolling required. Every page has a "Short answer" box at the top, followed by the working code, then the explanation. If you're looking for a structured learning path instead, the JavaScript learning path covers every concept from scratch.

🔒 Scoping & functions

The parts of JavaScript that surprise everyone the first time.

⏳ Async

Promises, async/await, and the event loop.

📊 Arrays & objects

The methods and patterns you use every day.

✨ Modern syntax

ES2015+ features that make code shorter and clearer.

⚠️ Errors & gotchas

The behaviors that don't work the way you expect.

📋 All 20 problems

Sorted by category. Click any to jump straight to the answer.

1

Scoping & functions

4 problems
var/let/constClosuresthisHoisting
2

Async

3 problems
Event loopPromises vs asyncError handling
3

Arrays & objects

4 problems
Array methodsmap/filter/reduceObject methodsJSON
4

Modern syntax

4 problems
Spread/restDestructuringOptional chainingTemplate literals
5

Errors & gotchas

5 problems
null/undefined==/===String methodsDebounce/throttleEvent delegation

🔗 Continue your JavaScript path

← Back to JavaScript track
JavaScript Problem Solvers · 20 answers