🌐
MDN Web Docs
developer.mozilla.org › en-US › docs › Glossary › Primitive
Primitive - Glossary | MDN
This auto-boxing behavior is not observable in JavaScript code but is a good mental model of various behaviors — for example, why "mutating" primitives does not work (because str.foo = 1 is not assigning to the property foo of str itself, but to an ephemeral wrapper object). ... This page was last modified on Jul 11, 2025 by MDN contributors. View this page on GitHub • Report a problem with this content
🌐
GitHub
gist.github.com › branneman › 7fb06d8a74d7e6d4cbcf75c50fec599c
Primitive Types & Reference Types in JavaScript · GitHub
The in-memory value of a primitive type is it's actual value (e.g. boolean true, number 42). A primitive type can be stored in the fixed amount of memory available. ... Primitive types are also known as: scalar types or simple types.
🌐
GitHub
gist.github.com › dwivediamit › 4152f126deedab69b7c2050d38883f44
JavaScript primitive types.md · GitHub
There are 7 primitive data types: string, number, bigint, boolean, undefined, symbol, and null.
🌐
W3Schools
w3schools.com › js › js_datatypes.asp
JavaScript Data Types
JS Data Types JS Primitive Data JS Object Types JS typeof JS toString() JS Type Conversion JS Errors
🌐
GeeksforGeeks
geeksforgeeks.org › javascript › primitive-and-non-primitive-data-types-in-javascript
Primitive and Non-primitive data-types in JavaScript - GeeksforGeeks
Primitive data types are the built-in data types provided by JavaScript. They represent single values and are not mutable.
Published   July 23, 2025
🌐
GitHub
github.com › jonschlinkert › is-primitive
GitHub - jonschlinkert/is-primitive: Is the typeof value a javascript primitive?
The Mozilla docs for "Primitive values" defines specifies six data types that are primitives: Boolean · Null · Undefined · Number · String ·
Starred by 37 users
Forked by 9 users
Languages   JavaScript
🌐
JavaScript.info
javascript.info › tutorial › the javascript language › data types
Methods of primitives
There are 7 primitive types: string, number, bigint, boolean, symbol, null and undefined.
🌐
Edureka
edureka.co › blog › data-types-in-javascript
What are the Different Data Types in JavaScript - Edureka
February 11, 2025 - The Primitive Data types in JavaScript include Number, String, Boolean, Undefined, Null and Symbol.
Find elsewhere
🌐
Suwebdev
suwebdev.github.io › WATS-3020-gitbook › data-types › 54-other-primitive-data-types.html
5.4 Other Primitive Data Types · GitBook
JavaScript also gives us a few Data Types that are used in more specific ways: Boolean, Undefined, Null, and Symbols.
🌐
GitConnected
levelup.gitconnected.com › primitive-vs-non-primitive-value-in-javascript-82030928fd9
Primitive vs Non-Primitive Value in Javascript? | by Ayush Tibra | Level Up Coding
June 15, 2022 - Primitives are known as being immutable data types because there is no way to change a primitive value once it gets created.
🌐
Codecademy
codecademy.com › docs › javascript › data types
JavaScript | Data Types | Codecademy
May 15, 2024 - Data types are used to classify eight fundamental values used for programming in JavaScript, including primitive and object types.
🌐
freeCodeCamp
freecodecamp.org › news › primitive-vs-reference-data-types-in-javascript
Primitive vs Reference Data Types in JavaScript
January 18, 2022 - Examples of such data types are numbers, strings, booleans, null, and undefined. But you might be wondering about strings, because they do have methods. The fact is, JavaSvript converts primitive strings to string objects, so that it is possible ...
🌐
Mozilla
developer.mozilla.org › en-US › docs › Web › JavaScript › Guide › Data_structures
JavaScript data types and data structures - JavaScript | MDN
The resulting primitive is then subject to further coercions depending on the context. JavaScript Data Structures and Algorithms by Oleksii Trekhleb · Computer Science in JavaScript by Nicholas C. Zakas ... This page was last modified on Jul 8, 2025 by MDN contributors. View this page on GitHub ...
🌐
Scaler
scaler.com › topics › what-are-the-primitive-data-types-in-javascript
What are the Primitive Data Types in JavaScript? - Scaler Topics
October 27, 2022 - Every programming language has data types that are used for storing values in the variable to perform a logical or mathematical operation. Similarly, we have data types in javascript that can be broadly divided into two groups such as primitive and non-primitive.
🌐
web.dev
web.dev › learn › javascript › data-types
Data types and structures | web.dev
Primitives are the simplest types of data in JavaScript. A primitive literal is a value, with no wrapper or properties of its own. Primitive literals are immutable, meaning they can't be changed to represent other values in the same way that ...
🌐
DEV Community
dev.to › mrizwanashiq › primitive-and-non-primitive-56n8
Primitive and Non-primitive - DEV Community
June 8, 2023 - Primitive data types such as string, number, null, undefined, and boolean, are passed by value while non-primitive data types such as objects, arrays, and functions are passed by reference.
🌐
Ga-wdi-exercises
ga-wdi-exercises.github.io › wdi22-javascript-cheatsheets › primitive_data_types.html
Primitive Data Types | wdi22-javascript-cheatsheets
typeof(10) // this is a number typeof("10") // this is a string "10" === 10 // this will evaluate false because 10 and "10" are not of the same data type "10" == 10 // this will evaluate true because the double == only checks if the value are the same while ignoring data types typeof(NaN) // NaN means 'Not a Number' but it will evaluate as a number.
🌐
33jsconcepts
33jsconcepts.com › concepts › primitive-types
Primitive Types - 33 JavaScript Concepts
JavaScript has exactly seven primitive types: string, number, bigint, boolean, undefined, null, and symbol. As defined by the ECMAScript specification, these are the fundamental building blocks of all data in JavaScript — everything else is ...
🌐
ScholarHat
scholarhat.com › home
Data Types in JavaScript: Primitive & Non-Primitive
September 22, 2025 - The eight basic data types in JavaScript are classified into two categories: Primitive data types are predefined or built-in data types in JavaScript that can hold simple values.