javascript
Objects — CRUD Operations & Dot vs Bracket Notation in JavascriptjavascriptLevel1
Progress0%
Contents
Objects — CRUD Operations & Dot vs Bracket Notation in Javascript
1 / 10
Introduction
Objects — CRUD Operations & Dot vs Bracket Notation
An object is a collection of related data stored as key-value pairs. Keys are called properties. Values can be any data type — strings, numbers, booleans, arrays, functions, or even other objects.
codejs
1const person = {
2 name: "Arjun", // string
3 age: 20, // number
4 isStudent: true, // boolean
5 scores: [85, 90], // array
6 address: { // nested object
7 city: "Mumbai",
8 pin: 400001
9 }
10};Objects are used to model real-world entities and group related data and behaviour together.