Hackforge Academy

Category: javascript

what is object

Published on 16 Jul 2026

Explanation

Objects store data as key-value pairs and represent real-world entities.

Code:

const student = {
  name: 'John',
  age: 22
};

Explanation

Object properties can be accessed using dot notation or bracket notation.

Code:

console.log(student.name);
console.log(student['age']);

Explanation

New properties can be added or existing properties updated.

Code:

student.city = 'Chennai';
student.age = 23;

Explanation

The delete keyword removes a property from an object.

Code:

delete student.city;

Explanation

Object.keys() and Object.values() return property names and values.

Code:

console.log(Object.keys(student));
console.log(Object.values(student));

๐Ÿš€ Learn Spring Boot with real-world projects

๐Ÿ’ก Build REST APIs step by step

๐Ÿง  Improve backend development skills

๐ŸŽฏ Get career-ready practical training

Join Our Free WhatsApp Community

Direct access to niche-specific mentors and peers on WhatsApp.

๐Ÿ

Python Community

Discuss Django, FastAPI, AI integration, and automation scripts with 15k+ developers.

Join Python Community
โš›๏ธ

React Community

Master Next.js, Framer Motion, and State Management. Share your latest UI components.

Join React Community
โ˜•

Java Community

Deep dives into Spring Boot, Microservices architecture, and high-performance backend ops.

Join Java Community