JavaScript Study Guide 2026

Everything you need to pass the JavaScript exam in one place: the exam format, every topic to study, real practice questions with explanations, flashcards, and full-length practice tests. Free, no sign-up needed.

๐Ÿ“‹ JavaScript Exam Format at a Glance

30
Questions
45 min
Time Limit
70.00%
Passing Score

๐Ÿ“š JavaScript Topics to Study (61)

โœ๏ธ Sample JavaScript Questions & Answers

1. Which HTTP method does `req.method` return for a browser form submission using the default form method?
โœ“ 'GET'

HTML forms default to `method="get"`, so `req.method` is `'GET'` unless the form explicitly specifies `method="post"`.

2. Which ES6 feature allows a function to pause execution and resume later?
โœ“ Generator functions

Generator functions, declared with `function*`, use the `yield` keyword to pause execution and resume on the next `.next()` call.

3. What does `Array.prototype.reduce()` do?
โœ“ Applies a function against an accumulator and each element to reduce the array to a single value

`reduce()` executes a reducer function on each element of the array, accumulating the result into a single output value. It takes a callback and an optional initial value.

4. What is the output of `console.log(typeof function(){})` in JavaScript?
โœ“ 'function'

`typeof` returns `'function'` for function objects, making them distinguishable from plain objects.

5. What does the `as` keyword do in `export { foo as bar }`?
โœ“ Creates an alias so importers use `bar` instead of `foo`

The `as` keyword in an export renames the binding so consumers import it under the new name `bar`.

6. What is the key difference between ES6 `class` and traditional constructor functions?
โœ“ Class bodies are always in strict mode; constructor functions are not by default

Code inside a class body executes in strict mode automatically, which is not the case for regular constructor functions in non-strict scripts.

๐ŸŽฏ Free JavaScript Practice Tests

๐Ÿ“– JavaScript Guides & Articles

Your JavaScript Study Path
1. Learn with Flashcards โ†’ 2. Drill Practice Tests โ†’ 3. Take the Full Exam Simulation
Was this helpful?
JavaScript Study Guide 2026 โ€” Exam Format, Topics & Practice Questions