DEV Community

anjan-dutta
anjan-dutta

Posted on

Objects in Javascript

Objects in Javascript are collection of properties. An object stores data in the form of key value pair. These are non-primitive type structure, because we can store multiple types (both primitive and non-primitive) data in any object.

While storing data in any object, for our reference, we associate that data to a key name. These keys are known as the object’s property. Object properties can be of any type

For example, a car can have many properties like make, model, year etc. And, we can represent a car or any other entity using an object like below:

var car = {
make: 'Audi',
model: 'A3',
year: 2018
};

In my blog post I have explained more about objects in javascript:

  • What is an object
  • How to create objects in Javascript
  • How to define properties in an object
  • Object prototype
  • Accessors
  • Use of the Object.defineProperty method in javascript
  • How to deep clone objects in JavaScript
  • How to remove a property from a JavaScript object
  • How do I loop through or enumerate a JavaScript object
  • Check if a key exists in a JavaScript object
  • How to determine the length of a JavaScript object
  • How to merge the properties of two JavaScript objects
  • How to check for an empty objects in JavaScript
  • Detecting an undefined object property

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

While many AI coding tools operate as simple command-response systems, Qodo Gen 1.0 represents the next generation: autonomous, multi-step problem-solving agents that work alongside you.

Read full post

Top comments (0)

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay