Day 4 of #100daysofjs

Day 4 of #100daysofjs

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

  1. null

  2. numbers

  3. string

  4. symbol

  5. undefined

  6. boolean

  7. 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