JavaScript Trivia Questions

  • ❓ 151+ questions
  • 🗂️ Programming
  • ✨ 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.

Download on the App StoreGet it on Google Play

Already playing?

Sample JavaScript Questions

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.

    • alert()
    • prompt()
    • confirm()
    • console.log()
  2. This keyword declares a variable that cannot be reassigned after its initial value is set.

    • var
    • const
    • let
    • static
  3. This operator checks both value and type equality, returning true only when both match exactly.

    • ==
    • !=
    • ===
    • =>
  4. This method adds one or more elements to the end of an array and returns the new length.

    • push()
    • pop()
    • shift()
    • unshift()
  5. This property returns the number of elements in an array.

    • size
    • length
    • count
    • total
  6. This statement immediately exits a loop, skipping any remaining iterations.

    • break
    • continue
    • return
    • exit
  7. This method converts an array into a string, with elements separated by commas.

    • concat()
    • split()
    • slice()
    • join()
  8. This built-in object provides access to browser debugging tools, with methods like log(), warn(), and error().

    • debug
    • terminal
    • console
    • output

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