Back to all templates
TEMPLATEKnowledge Quiz

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.

javascripteducationcodingquiz
Category
Courses & Education
Type
Knowledge Quiz
Questions
12
756 · Views25 · Uses
Try the live quiz

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.

  1. What does `typeof null` return in JavaScript?object · null · undefined · number
  2. Which keyword declares a block-scoped variable that cannot be reassigned?const · let · var · static
  3. `===` compares values without performing type coercion.
  4. What is the output of `[1, 2, 3].map(n => n * 2)`?[2, 4, 6] · [1, 2, 3] · [1, 4, 9] · 6
  5. Which array method adds an item to the END of an array and returns the new length?push · pop · shift · unshift
  6. 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
  7. What does `console.log(1 + '2' + 3)` print?123 · 6 · 15 · NaN
  8. Arrow functions create their own `this` binding.
  9. 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
  10. 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
  11. 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
  12. 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 60
  • Solid fundamentals

    Score 60–100
  • JavaScript 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

  1. Answer the live preview yourself to see exactly what a respondent sees, question by question.
  2. Copy it into your account — the questions, scoring logic and result pages all come with it.
  3. Rewrite the copy, add your own branding and call to action, then publish it on your own link or embed it on your site.

Related templates

See all Courses & Education templates