Member-only story

11 Javascript Object Concepts Explained in Under 280 Characters Each

Look no further for a simple explanation

Sanjay Priyadarshi
3 min readSep 3, 2022
Photo by Max Ilienerwise on Unsplash

The knowledge of objects plays a key role in understanding javascript.

But somehow most explanations overcomplicate javascript objects.

As programmers, we need adequate explanations in simple language.

Here I have explained eleven object concepts in less than 280 characters each.

1. Object defined in simple words

An object is a collection of properties.

Consider a car, color blue, with a fixed mileage and model number.

We can create an object with car properties.

const car = {    color: blue,
mileage: 500,
model: A698
};

Terminate the object with a curly bracket and a semicolon.

2. Three basic rules for creating objects

  • The object must be enclosed in braces.
const person = {    name: "Sam"
};
  • Separate the name and value with a colon.
const dog = {

--

--

Sanjay Priyadarshi
Sanjay Priyadarshi

Written by Sanjay Priyadarshi

Join a Community of People Who Love Javascript, Programming and Technology — codertoentrepreneurs.substack.com

No responses yet