Non-Primitive data type in JavaScript is Object. It holds the address or reference of the key value pair that can be single or multiple key values. These are also called as derived datatypes.

//Non-primitive data type // object const obj = { name: "Rajesh", class: "10", section: "A" } console.log("Printing Object"); console.log(obj); // Adding a New element to the object console.log(""); console.log("Adding a new element to the object"); obj["subject"] = "Hindi, Math"; console.log(obj); // Accessing the Object in JavaScript console.log("Accessing the Object in JavaScript"); //1. console.log(obj["class"]) //2. console.log(obj.name)