anjandutta.com
Published in

anjandutta.com

Objects in Javascript

#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

--

--

--

programming related references

Recommended from Medium

React vs Angular

Handling Errors in NgRx Effects

@tofusoup429/pubfuncs

Creating Cell Fractured Animations Using Blender and React Three Fiber

Have you heard about koa ✍️(◔◡◔)

Intro to React Hooks: Why, How, Dos and Don’ts

Composi — A Small & Fast Component Library

Learn by implementing React’s useState and useEffect — A simplified overview

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Anjan Dutta

Anjan Dutta

https://anjandutta.com

More from Medium

The equality (==) and strict equality (===) operators in JavaScript

5 Must Know Lodash Methods

What is THIS? Understanding the execution context in JavaScript

Create and Print Linked List in JavaScript