Skip to content

Quiz · JavaScript

JavaScript Basics Quiz: Variables, Types & Operators

A JavaScript quiz for beginners: let, const and var, typeof, == versus ===, type coercion, truthy and falsy values, template literals and arrays.

Questions
15
Difficulty
Easy
Time
~8min
Per question
15sec

What it covers

JavaScript

A topic in Programming & Coding.

JavaScript quizzes from first variables to promises: types and coercion, predicting code output, closures, the event loop and async/await.

Before you start

How it works

  1. 1

    The clock

    You have 15 seconds for each question. When time runs out, the question counts as wrong.

  2. 2

    Your answer

    Your first choice is the one that counts. It is checked straight away, with an explanation where there is one.

  3. 3

    The score

    At the end you see your score and can go back through every question and its answer.

  4. 4

    The XP

    XP scales with your score. Replays earn XP only when you beat your previous best.

From players

Ratings

Play next

All of JavaScript

Programming & Coding · JavaScript

JavaScript Output Quiz: Predict the Result

JavaScript output questions: predict what each snippet prints, covering scope, closures, sort(), var in loops, the event loop, hoisting and semicolons.

Medium difficulty15 questions~10 min
+120 XPPlay