Object :

An object in JavaScript is a data structure used to store related data collections. It stores data as key-value pairs, where each key is a unique identifier for the associated value. Objects are dynamic, which means the properties can be added, modified, or deleted at runtime.

The objects will be In Types { Key : Value}

{Name : Sai Krishna}

what is key & What is Property Value ?

image.png

from the above Know what is key & What is Property Value .

JavaScript Object clear Information in one image

image.png

/**
 * Objects --> {Key :  Value }
 */

//Object Literal 

const personObj = {
    name:"SaiKrishna", //property
    age : 22,
    qualification : "MCA",                            //Object Structure Program!
    course : ["Html", "CSS", "JavaScript", "MERN"]
}

console.log(personObj);
console.log(personObj.name);

OP : 
{
  name: 'SaiKrishna',
  age: 22,
  qualification: 'MCA',
  course: [ 'Html', 'CSS', 'JavaScript', 'MERN' ]
}
SaiKrishna

Why We use [ ] these brackets :

When the Name has 2 values like course done it should be written in double quotes

/**
 * Objects --> {Key :  Value }
 */

//Object Literal 

const personObj = {
    name:"SaiKrishna", //property
    age : 22,
    qualification : "MCA",                            //Object Structure Program!
    "course done" : ["Html", "CSS", "JavaScript", "MERN"]
}

// console.log(personObj);
// console.log(personObj.name); //Here .is used for  single Names like Only course 

console.log(personObj["course done"]);   //[] these brackets are used for More Names double names
console.log(personObj["age"]);

OP : [ 'Html', 'CSS', 'JavaScript', 'MERN' ]
22