Skip to main content

Accepted Answer · #47 · 2026-05-21

Which answer is correct?

Difficulty 1/3

How to play

Read the Stack Overflow–style question, then pick the one correct answer from four plausible options. Watch out — wrong answers often have high fake votes.

How to check if a variable is an array in JavaScript?

I need a reliable way to determine if a value is an array. `typeof` returns "object" for arrays, which is not helpful.

javascriptarraystypes

Loading your progress...

Press 1 through 4, or tap a numbered choice, to answer. Back to hub