- Executors
-
Learn
Learn Python Runnable examples, NumPy, pandas, and more Learn AI / Machine LearningNeural networks, ML and LLMs from scratch Learn C & C++ Pointers, memory, STL, and modern C++ Learn C#C# basics, OOP, LINQ, async, and .NET exercises Learn MatplotlibLine, bar, scatter and pie charts with live visualizers Learn RustOwnership, traits, error handling, and threads Learn GoSlices, interfaces, goroutines, and channels Python Algorithms Search, sorting, recursion, and visualizers O(n) C & C++ Algorithms Compare algorithms implemented in C and C++ Coding for Kids Learn to code by playing!
- QuizzesNew
- ChallengesNew
- For TeachersNew
- Updates
- Buy me a coffee
JavaScript Quizzes
30 JavaScript quizzes with 300 multiple-choice questions, from easy to hard. Every answer is explained.
30 quizzes · 300 questions
6 categories
Node.js 22
JavaScript categories
3 Easy2 Medium
let, const & var
Types & typeof
Operators & Type Coercion
+2
0 of 5 passed
Start
2 Easy1 Medium2 Hard
Functions & Arrow Functions
Default & Rest Parameters
Scope & Hoisting
+2
0 of 5 passed
Start
2 Easy3 Medium
map, filter & reduce
Sorting Gotchas
Objects & Copying
+2
0 of 5 passed
Start
4 Medium1 Hard
The Event Loop
Promises
async/await
+2
0 of 5 passed
Start
2 Easy2 Medium1 Hard
Prototypes
Classes & Inheritance
Getters, Setters & static
+2
0 of 5 passed
Start
2 Medium3 Hard
Output-Based JavaScript Questions
Tricky JavaScript Questions
Closures in Loops
+2
0 of 5 passed
Start
matching quizzes
1
let, const & var
Easy
Know when to use
let, const or var and how each one is scoped.
JavaScript · JavaScript Basics
#variables#scope
10 questions · ~5 min
Not started
Start
2
Types & typeof
Easy
Learn JavaScript's built-in types and the surprises in what
typeof reports.
JavaScript · JavaScript Basics
#types#typeof
10 questions · ~5 min
Not started
Start
3
Operators & Type Coercion
Medium
Predict what happens when JavaScript operators mix strings, numbers and booleans.
JavaScript · JavaScript Basics
#coercion#operators
10 questions · ~6 min
Not started
Start
4
Strings & Template Literals
Easy
Build strings with template literals and use the most common string methods.
JavaScript · JavaScript Basics
#strings#template-literals
10 questions · ~5 min
Not started
Start
5
== vs ===
Medium
See exactly when loose
== and strict === give different answers.
JavaScript · JavaScript Basics
#equality#coercion
10 questions · ~6 min
Not started
Start
1
Functions & Arrow Functions
Easy
Write and read function declarations, function expressions and arrow functions.
JavaScript · Functions & Scope
#functions#arrow-functions
10 questions · ~5 min
Not started
Start
2
Default & Rest Parameters
Easy
Give parameters default values and collect extra arguments with rest parameters.
JavaScript · Functions & Scope
#functions#parameters
10 questions · ~5 min
Not started
Start
3
Scope & Hoisting
Medium
Predict what happens when variables and functions are used before their declaration.
JavaScript · Functions & Scope
#scope#hoisting
10 questions · ~6 min
Not started
Start
4
Closures
Hard
Understand how functions remember the variables around them, a favorite interview topic.
JavaScript · Functions & Scope
#closures#interview
10 questions · ~8 min
Not started
Start
5
this, call, apply & bind
Hard
Predict what
this points to and control it with call, apply and bind.
JavaScript · Functions & Scope
#this#interview
10 questions · ~8 min
Not started
Start
1
map, filter & reduce
Medium
Predict what
map, filter, reduce and their friends return, including the classic callback traps.
JavaScript · Arrays & Objects
#arrays#array-methods
10 questions · ~6 min
Not started
Start
2
Sorting Gotchas
Medium
Learn why
[10, 1, 5].sort() surprises people and how to sort numbers, strings and objects correctly.
JavaScript · Arrays & Objects
#arrays#sorting#gotchas
10 questions · ~6 min
Not started
Start
3
Objects & Copying
Medium
Understand references, shallow and deep copies, and why changing a copy can change the original.
JavaScript · Arrays & Objects
#objects#copying
10 questions · ~6 min
Not started
Start
4
Destructuring & Spread
Easy
Pull values out of arrays and objects and spread them into new ones.
JavaScript · Arrays & Objects
#destructuring#spread
10 questions · ~5 min
Not started
Start
5
Map & Set
Easy
Use
Map for key-value data and Set for unique values, and know how they differ from plain objects and arrays.
JavaScript · Arrays & Objects
#map#set
10 questions · ~5 min
Not started
Start
1
The Event Loop
Hard
Predict the exact order of synchronous code, microtasks and timers, the classic interview question.
JavaScript · Asynchronous JavaScript
#event-loop#interview
10 questions · ~8 min
Not started
Start
2
Promises
Medium
Check how promises settle, how values flow through
.then() chains and where .catch() and .finally() fit.
JavaScript · Asynchronous JavaScript
#promises#then-chains
10 questions · ~6 min
Not started
Start
3
async/await
Medium
Read and write
async functions, and spot the missing await and forEach traps.
JavaScript · Asynchronous JavaScript
#async-await#promises
10 questions · ~6 min
Not started
Start
4
Async Error Handling
Medium
Catch errors from promises and
async functions in the right place, and avoid the ones that slip through.
JavaScript · Asynchronous JavaScript
#promises#errors
10 questions · ~6 min
Not started
Start
5
Promise.all, allSettled, race & any
Medium
Pick the right way to wait for many promises and predict what each combinator returns.
JavaScript · Asynchronous JavaScript
#promises#concurrency
10 questions · ~6 min
Not started
Start
1
Prototypes
Hard
Follow the prototype chain to see where JavaScript finds a property and what happens when you write to one.
JavaScript · Objects, Prototypes & Classes
#prototypes#oop
10 questions · ~8 min
Not started
Start
2
Classes & Inheritance
Medium
Practice JavaScript classes, extends, super and the rules about this inside methods.
JavaScript · Objects, Prototypes & Classes
#classes#oop
10 questions · ~6 min
Not started
Start
3
Getters, Setters & static
Medium
Computed properties with get and set, plus static fields and methods that belong to the class itself.
JavaScript · Objects, Prototypes & Classes
#classes#getters-setters
10 questions · ~6 min
Not started
Start
4
JSON
Easy
Turn objects into JSON text and back, and learn what gets lost on the way.
JavaScript · Objects, Prototypes & Classes
#json#serialization
10 questions · ~5 min
Not started
Start
5
Optional Chaining & ??
Easy
Read nested values safely with ?. and pick defaults with ?? without losing 0 or empty strings.
JavaScript · Objects, Prototypes & Classes
#operators#modern-js
10 questions · ~5 min
Not started
Start
1
Output-Based JavaScript Questions
Medium
Predict the output of short snippets, the most common JavaScript interview format.
JavaScript · JavaScript Interview Questions
#output-prediction#interview
10 questions · ~6 min
Not started
Start
2
Tricky JavaScript Questions
Hard
The JavaScript gotchas that trip up even experienced developers in interviews.
JavaScript · JavaScript Interview Questions
#gotchas#interview
10 questions · ~8 min
Not started
Start
3
Closures in Loops
Hard
The classic interview puzzle of functions created inside loops, with var, let and every fix in between.
JavaScript · JavaScript Interview Questions
#closures#interview
10 questions · ~8 min
Not started
Start
4
JavaScript: Find the Bug
Hard
Each snippet has a real-world bug. Work out what it actually does and how to fix it.
JavaScript · JavaScript Interview Questions
#debugging#interview
10 questions · ~8 min
Not started
Start
5
Modern JavaScript (ES2020+)
Medium
Newer features you are expected to know, from at() and Object.groupBy to structuredClone and BigInt.
JavaScript · JavaScript Interview Questions
#modern-js#es2020
10 questions · ~6 min
Not started
Start
No quiz matches. Try another word or tag.
Popular this week
- 1 Operators & Type Coercion MediumJavaScript Basics#coercion#operators
- 2 == vs === MediumJavaScript Basics#equality#coercion
- 3 Scope & Hoisting MediumFunctions & Scope#scope#hoisting
- 4 map, filter & reduce MediumArrays & Objects#arrays#array-methods
- 5 Sorting Gotchas MediumArrays & Objects#arrays#sorting#gotchas