JavaScript Primitive Types
Question
Which of the following is NOT a primitive data type in JavaScript?
Hint
Primitives are the simplest data types. Objects are collections of key-value pairs.
Explanation
JavaScript has 7 primitive types: string, number, boolean, undefined, null, symbol, and bigint. Object is NOT a primitive — it is a composite type that holds key-value pairs. Arrays and functions are also objects under the hood.
Related Resources
Related Lessons
- JavaScript Data Types
Learn about JavaScript primitive and reference types.
Related Tools
- JSON Formatter
JavaScript objects look like JSON — practice formatting them.
Related Cheatsheets
- JavaScript Cheatsheet
Quick reference for JavaScript data types.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.