Primitives and Objects in JavaScript
Primitive data types are a set of basic data types in JavaScript.
Objects are a nonprimitive datatype in JavaScript.
There are 7 primitive datatypes in JavaScript
null
numbers
string
symbol
undefined
boolean
BigInt
Object
An object in JavaScript can be created as follow
const item {
name: "led bulb",
price: "10",
}
name and price are key, led bulb and 10 is the value