Primitive values are immutable, meaning they can't be altered after they've been generated. Object references, on the other hand, are variable and changeable.
A primitive (primitive value, primitive data type) in JavaScript is data that isn't an object and doesn't have any methods. String, number, bigint, boolean, undefined, symbol, and null are the seven primitive data types.
The primary distinctions between primitive types and objects are as follows. Objects only have an immutable reference, but their value might change over time. Primitive types are immutable. Values are supplied to primitive kinds. References are used to pass objects. By value, primitive types are copied.
A primitive data structure is a data structure that stores only one type of data. The term "non-primitive data structure" refers to a data structure that may store data of multiple types. Integer, character, and float are examples of primitive data structures.
Learner's Ratings
4.4
Overall Rating
73%
10%
9%
1%
7%
Reviews
M
Mohanlal Khhurana
5
Very helpful course in learning ReactJS
S
Sumit Kumar
5
Fake reviews
M
Mahaveer kumar kirshanani
5
amazing mam , keep going
R
Rakeh
5
nice
A
Anshul Bhai
5
This is very helpful
Y
yash sheliya
5
My explaining in learnvern was good. Thank you for Learn Vern to all teachers
Share a personalized message with your friends.