<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Coding Stories</title>
    <description>The latest articles on DEV Community by Coding Stories (@annashabbagh).</description>
    <link>https://dev.to/annashabbagh</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3217564%2F90c835e4-fb40-4b5d-8ecf-76cdcf018c2a.jpg</url>
      <title>DEV Community: Coding Stories</title>
      <link>https://dev.to/annashabbagh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/annashabbagh"/>
    <language>en</language>
    <item>
      <title>JavaScript Objects Explained Simply for Beginners (with Examples)</title>
      <dc:creator>Coding Stories</dc:creator>
      <pubDate>Wed, 28 May 2025 10:15:32 +0000</pubDate>
      <link>https://dev.to/annashabbagh/javascript-objects-explained-simply-for-beginners-with-examples-4adc</link>
      <guid>https://dev.to/annashabbagh/javascript-objects-explained-simply-for-beginners-with-examples-4adc</guid>
      <description>&lt;p&gt;&lt;a href="https://jsexplained.blogspot.com/2025/01/master-javascript-objects-complete.html" rel="noopener noreferrer"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Are you confused about &lt;strong&gt;JavaScript Objects&lt;/strong&gt;? You're not alone!&lt;/p&gt;

&lt;p&gt;In this blog, we’ll break down &lt;strong&gt;JavaScript Objects&lt;/strong&gt; in the simplest way possible — with &lt;strong&gt;real-life examples&lt;/strong&gt;, code snippets, and clear explanations.&lt;/p&gt;




&lt;h2&gt;
  
  
  🧠 What is an Object in JavaScript?
&lt;/h2&gt;

&lt;p&gt;An object is a collection of key-value pairs. Think of it as a mini container to hold related information together.&lt;/p&gt;

&lt;p&gt;Javascript Code- &lt;br&gt;
const person = {&lt;br&gt;
  name: "Anna",&lt;br&gt;
  age: 22,&lt;br&gt;
  isStudent: true&lt;br&gt;
};&lt;/p&gt;

&lt;p&gt;Here, person is an object with 3 properties.&lt;/p&gt;

&lt;p&gt;🧩 Why Use Objects?&lt;br&gt;
Objects help you group and organize data. For example, a user’s name, email, and password can be stored in one object.&lt;/p&gt;

&lt;p&gt;js&lt;br&gt;
const user = {&lt;br&gt;
  username: "annacodes",&lt;br&gt;
  email: "&lt;a href="https://jsexplained.blogspot.com" rel="noopener noreferrer"&gt;https://jsexplained.blogspot.com&lt;/a&gt;",&lt;br&gt;
  password: "secure123"&lt;br&gt;
};&lt;br&gt;
🔄 Accessing &amp;amp; Updating Object Values&lt;br&gt;
js&lt;/p&gt;

&lt;p&gt;console.log(person.name);       // Output: Anna&lt;br&gt;
person.age = 23;                // Updating age&lt;br&gt;
console.log(person.age);        // Output: 23&lt;br&gt;
You can also use bracket notation:&lt;/p&gt;

&lt;p&gt;js&lt;/p&gt;

&lt;p&gt;console.log(person["isStudent"]); // true&lt;br&gt;
🧪 Object Methods&lt;br&gt;
Objects can also store functions (called methods):&lt;/p&gt;

&lt;p&gt;js&lt;br&gt;
const car = {&lt;br&gt;
  brand: "Toyota",&lt;br&gt;
  start: function () {&lt;br&gt;
    console.log("Car has started!");&lt;br&gt;
  }&lt;br&gt;
};&lt;/p&gt;

&lt;p&gt;car.start(); // Car has started!&lt;br&gt;
📦 Nested Objects&lt;br&gt;
Objects can have other objects inside them:&lt;/p&gt;

&lt;p&gt;js&lt;br&gt;
const student = {&lt;br&gt;
  name: "Karan",&lt;br&gt;
  address: {&lt;br&gt;
    city: "Delhi",&lt;br&gt;
    pin: 110001&lt;br&gt;
  }&lt;br&gt;
};&lt;/p&gt;

&lt;p&gt;console.log(student.address.city); // Delhi&lt;br&gt;
📌 Bonus: Object Destructuring&lt;br&gt;
Destructuring is a clean way to extract values:&lt;/p&gt;

&lt;p&gt;js&lt;br&gt;
const { name, age } = person;&lt;br&gt;
console.log(name); // Anna&lt;br&gt;
🙌 Wrapping Up&lt;br&gt;
Objects are the building blocks of JavaScript. Once you &lt;br&gt;
understand them, working with real-world data becomes much easier.&lt;/p&gt;

&lt;p&gt;💬 Was this helpful?&lt;br&gt;
Let me know in the comments or connect with me!&lt;/p&gt;

&lt;p&gt;📎 Original Blog Post&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>webdev</category>
      <category>coding</category>
    </item>
  </channel>
</rss>
