Firstly we have to know what is object in Javascript(JS ). JavaScript object is a standalone entity that holds multiple values in terms of properties and methods. var person = {
firstName: "James",
lastName: "Bond",
age: 25
}; Properties are firstName, lastName, and age values of person object James, Bond…