JavaScript Quiz: Test Your JS Fundamentals in 12 Questions
A JavaScript fundamentals quiz for bootcamps, course creators and hiring teams. Twelve scored multiple-choice questions cover types, scope, hoisting, arrays, coercion and the classic gotchas, and every question shows a written explanation after the answer so respondents learn as they go. Use it as a free skills check that captures leads, a course pre-test, or a lightweight developer screen.
Live preview
About this template
JavaScript Quiz: Test Your JS Fundamentals in 12 Questions is a free quiz template with 12 questions. Take the live preview above, then copy it into your own RooQuiz account — the questions, results and follow-up are all yours to edit before you publish.
What's inside: 12 questions
Every question below comes with the template, in this order. After you copy it, you can reword, reorder or remove any of them.
- What does `typeof null` return in JavaScript?object · null · undefined · number
- Which keyword declares a block-scoped variable that cannot be reassigned?const · let · var · static
- `===` compares values without performing type coercion.
- What is the output of `[1, 2, 3].map(n => n * 2)`?[2, 4, 6] · [1, 2, 3] · [1, 4, 9] · 6
- Which array method adds an item to the END of an array and returns the new length?push · pop · shift · unshift
- Which of these values are falsy in JavaScript? (Select all that apply.)0 · An empty string · An empty array · undefined · A string containing the word false
- What does `console.log(1 + '2' + 3)` print?123 · 6 · 15 · NaN
- Arrow functions create their own `this` binding.
- What does putting `async` before a function guarantee?It returns a Promise · It runs on a separate thread · It caches the result · It can never throw
- Which statement about `let` and `var` is correct?let is block-scoped; var is function-scoped · They behave identically · var is block-scoped; let is global · let variables are always constant
- What does `JSON.parse()` do with a valid JSON string?Converts it into a JavaScript value/object · Converts an object into a string · Validates HTML · Throws unless given an array
- What is the result of the expression `'5' - 2`?3 (a number) · '52' · '3' · NaN
Result levels
The total score places each respondent in one of 3 levels, each with its own message on the result page.
Keep learning
Score below 60Solid fundamentals
Score 60–100JavaScript Pro
Score 100+
How scoring works
Each question has one correct answer and a point value. Correct answers add up to a total score, the total decides the level, and each answer can show a short explanation so people learn as they play.
How to use this template
- Answer the live preview yourself to see exactly what a respondent sees, question by question.
- Copy it into your account — the questions, scoring logic and result pages all come with it.
- Rewrite the copy, add your own branding and call to action, then publish it on your own link or embed it on your site.