𝗝𝗮𝘃𝗮𝗦𝗰𝗿𝗶𝗽𝘁 𝗢𝗯𝗷𝗲𝗰𝘁𝘀 𝗘𝘅𝗽𝗹𝗮𝗶𝗻𝗲𝗱

Objects store data in key-value pairs. You need to know how to create and manage them.

Ways to create objects:

  1. Object Literal Use curly braces to define data directly. let user = { name: "Ezhil", age: 23 };

  2. Object Constructor Use the new keyword. let user = new Object(); user.name = "Ezhil";

Common operations:

You also use Object.assign() to merge objects into a target object.

Source: https://www.geeksforgeeks.org/javascript/objects-in-javascript/

Full post: https://dev.to/ezhil_abinayak_e38eec8fb/object-in-js-5048