Object
PronunciationOB-jekt
Definition
A value that groups related data (properties) and sometimes behavior (methods) under one name.
Where you hear it
JavaScript and Python basics, JSON payloads, and object-oriented design.
Examples
Send the user as a JSON object with
nameandemail.Each
Orderobject has atotalproperty.The order object holds the items, the customer and the total in one place.
Common mistake
Mixing up "object" (an instance with real data) and "class" (the blueprint).
Don't confuse with
An object is a concrete instance in memory containing actual data, whereas a class is just the abstract blueprint or template used to create that object.
Say it at work
- In a meeting or chat
Let's update this object to include the user's phone number before we pass it to the API.
- In an email or ticket
Please ensure the incoming configuration object validates properly against the schema before saving it.
Keep exploring
More in Programming Fundamentals