Skip to content
engineering workbench.by StudyPort Academy
All glossary terms

GLOSSARY · A WORD, UNPACKED

primitive

one of JavaScript's basic, simple values (string, number, boolean, etc.) that isn't made up of other values.

A little more detail

JavaScript has seven primitive types: string, number, bigint, boolean, undefined, null, and symbol. “Simple” distinguishes these immutable language values from objects with independently changeable properties; a string can still contain many characters. Assigning a primitive to another variable copies its value. typeof null is the historical exception that reports "object" even though null is a primitive.

See it in practice

These lessons pair the idea with examples you can change and run.