Skip to main content

What are data types in JavaScript?

Entry JavaScript
Quick Answer JavaScript has: Primitive types รขโ‚ฌโ€ string, number, bigint, boolean, null, undefined, symbol. And Object type รขโ‚ฌโ€ including arrays, functions, dates, and plain objects. Primitives are immutable and compared by value. Objects are compared by reference รขโ‚ฌโ€ two separate objects with the same content are not equal.

Answer

Primitive: String, Number, Boolean, Null, Undefined, Symbol, BigInt.

Non-primitive: Object, Array, Function.

S
SugharaIQ Editorial Team Verified Answer

This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice