Loading Depth Study
Preparing your workspace
Objects represent a thing or entity by grouping related properties and, in some languages, behavior.
Real-world entities have multiple related pieces of information. A user has a name, email, role, and status. An object allows these properties to be represented together under meaningful names. Objects are widely used for application state, API responses, configuration, and business data.
A learning platform can represent a student as an object containing the student's name, email, role, and enrolled course.
const student = {
name: "Aman",
role: "student",
active: true
};
console.log(student.name);
console.log(student.role);Aman student