JavaScript Trivia Questions

  • ❓ 151+ questions
  • 🗂️ Programming
  • 🎚️ Easy to expert
  • ✨ Free to play

Programming language of the web. Play JavaScript trivia solo to sharpen your knowledge, or challenge a friend head-to-head in Trivia Tango — every question comes with an explanation so you learn as you play. Questions span every level, from easy warm-ups to expert-level stumpers, so there's a real challenge here however much you already know.

Download on the App StoreGet it on Google Play

Already playing?

Sample JavaScript Quiz Questions

A mix of easy, medium and hard — questions run from warm-up to expert, so there's a real challenge at every level. Think you know the answers? Play to find out.

  1. In a web browser, this built-in function displays a popup dialog box with a message and an OK button.

    Difficulty: Easy
    • alert()
    • prompt()
    • confirm()
    • console.log()
  2. This object represents the eventual completion or failure of an asynchronous operation and its resulting value.

    Difficulty: Medium
    • Promise
    • Observable
    • Callback
    • Future
  3. This technique prevents creating multiple instances of an object by caching and returning the existing instance.

    Difficulty: Hard
    • Singleton pattern
    • Factory pattern
    • Prototype pattern
    • Builder pattern
  4. This keyword declares a variable that cannot be reassigned after its initial value is set.

    Difficulty: Easy
    • var
    • const
    • let
    • static
  5. This keyword pauses async function execution until a Promise is settled and returns its result.

    Difficulty: Medium
    • yield
    • async
    • await
    • defer
  6. This V8 optimization technique compiles frequently executed bytecode directly to machine code for faster execution.

    Difficulty: Hard
    • Interpretation
    • Baseline compilation
    • JIT compilation
    • AOT compilation
  7. This operator checks both value and type equality, returning true only when both match exactly.

    Difficulty: Easy
    • ==
    • !=
    • ===
    • =>
  8. This method creates a shallow copy of a portion of a string as a new string.

    Difficulty: Medium
    • splice()
    • slice()
    • split()
    • substr()

Think You Know JavaScript?

Play a free round in your browser, learn something new with every answer, and challenge your friends to beat your score.

Or get the app

Download on the App StoreGet it on Google Play