{"id":8692,"date":"2025-03-22T16:32:57","date_gmt":"2025-03-22T11:02:57","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=8692"},"modified":"2025-03-22T16:33:00","modified_gmt":"2025-03-22T11:03:00","slug":"objects-in-javascript","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/objects-in-javascript\/","title":{"rendered":"Objects in JavaScript"},"content":{"rendered":"\n<p>An object is a collection of properties, where each property is an association between a name(or key) and a value.In JavaScript, an object is a standalone entity with properties and a specific type. For example,consider an animal. An animal has properties such as color, structure, and weight. Similarly, JavaScript objects have properties that define their characteristics.<\/p>\n\n\n\n<p>We can create an object initializer. An object initializer is a comma-separated list of one or more property names and their corresponding values, enclosed in curly braces{}.<\/p>\n\n\n\n<p><strong>Creating an Object<\/strong><\/p>\n\n\n\n<p>An object in JavaScript can be created with four properties using different methods.<\/p>\n\n\n\n<p><strong>First Method: Using object Initializer<\/strong><\/p>\n\n\n\n<p>An object initializer allows defining properties within curly braces {}. It can span multiple lines, making it easy to read and manage.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"120\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-2-1024x120.png\" alt=\"\" class=\"wp-image-8694\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-2-1024x120.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-2-300x35.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-2-768x90.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-2-1536x179.png 1536w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-2-850x99.png 850w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-2.png 1960w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Second Method: creating an Empty object and Adding Properties<\/strong><\/p>\n\n\n\n<p>We can create an empty object and add properties dynamically.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"139\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-3-1024x139.png\" alt=\"\" class=\"wp-image-8695\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-3-1024x139.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-3-300x41.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-3-768x104.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-3-1536x208.png 1536w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-3-850x115.png 850w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-3.png 1978w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Third Method: Using new Keyword<\/strong><\/p>\n\n\n\n<p>The new object () syntax creates an object instance.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"165\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-4-1024x165.png\" alt=\"\" class=\"wp-image-8696\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-4-1024x165.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-4-300x48.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-4-768x123.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-4-1536x247.png 1536w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-4-850x137.png 850w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-4.png 1855w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Accessing<\/strong> <strong>Object<\/strong><\/p>\n\n\n\n<p>We can access an object in two methods<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Dot Notation<\/li>\n\n\n\n<li>Bracket Notation<\/li>\n<\/ul>\n\n\n\n<p><strong>Dot Notation<\/strong><\/p>\n\n\n\n<p>Used when the property name is known and follows standard variable naming rules.<\/p>\n\n\n\n<p>object.property<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/dot.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"212\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/dot-1024x212.png\" alt=\"\" class=\"wp-image-8709\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/dot-1024x212.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/dot-300x62.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/dot-768x159.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/dot-1536x318.png 1536w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/dot-850x176.png 850w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/dot.png 1711w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Bracket Notation<\/strong><\/p>\n\n\n\n<p>Used when the property name is dynamic, contains special characters, or is stored as a variable.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-5.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"215\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-5-1024x215.png\" alt=\"\" class=\"wp-image-8710\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-5-1024x215.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-5-300x63.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-5-768x161.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-5-1536x323.png 1536w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-5-850x179.png 850w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-5.png 1746w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Changing Object Property<\/strong><\/p>\n\n\n\n<p>We can change object property but can&#8217;t able to change object once initialize.<\/p>\n\n\n\n<p>In below code, The model of object is changed to Creta.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"213\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-6-1024x213.png\" alt=\"\" class=\"wp-image-8711\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-6-1024x213.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-6-300x62.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-6-768x159.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-6-1536x319.png 1536w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-6-850x177.png 850w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-6.png 1695w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Delete Object Property<\/strong><\/p>\n\n\n\n<p>In deleting an object property, by using &#8220;delete&#8221; keyword property of object is deleted.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-7.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"226\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-7-1024x226.png\" alt=\"\" class=\"wp-image-8712\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-7-1024x226.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-7-300x66.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-7-768x170.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-7-1536x340.png 1536w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-7-850x188.png 850w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-7.png 1714w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Methods of Object<\/strong><\/p>\n\n\n\n<p><strong>Object.values()<\/strong><\/p>\n\n\n\n<p>By using Object.values() we can take only the values of the object.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-8.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"227\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-8-1024x227.png\" alt=\"\" class=\"wp-image-8713\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-8-1024x227.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-8-300x66.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-8-768x170.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-8-1536x340.png 1536w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-8-850x188.png 850w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-8.png 1564w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><strong> Object.keys()<\/strong><\/p>\n\n\n\n<p>By using Object.keys() method take only the keys of the object.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-9.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"207\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-9-1024x207.png\" alt=\"\" class=\"wp-image-8714\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-9-1024x207.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-9-300x61.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-9-768x155.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-9-1536x310.png 1536w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-9-850x171.png 850w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-9.png 1552w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Object.entries()<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-10.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"309\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-10-1024x309.png\" alt=\"\" class=\"wp-image-8715\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-10-1024x309.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-10-300x90.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-10-768x231.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-10-1536x463.png 1536w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-10-850x256.png 850w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-10.png 1576w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p><strong>Object.freeze()<\/strong><\/p>\n\n\n\n<p>Once an object is frozen the property we cannot able to change  or delete its property of object.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-12.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"223\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-12-1024x223.png\" alt=\"\" class=\"wp-image-8720\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-12-1024x223.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-12-300x65.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-12-768x168.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-12-1536x335.png 1536w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-12-850x185.png 850w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-12.png 1944w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>In this snippet object is frozen and the color of object is changed to white after freeze but color of object is unchanged. Second same color of the object is deleted but it is not delete.<\/p>\n\n\n\n<p><strong>Object.seal()<\/strong><\/p>\n\n\n\n<p>Once an object is sealed, we can modify existing properties but cannot add or deleted properties.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-13.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"262\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-13-1024x262.png\" alt=\"\" class=\"wp-image-8723\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-13-1024x262.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-13-300x77.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-13-768x196.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-13-1536x393.png 1536w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-13-850x217.png 850w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-13.png 1951w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>In this snippet first object is sealed and then change the color of the vehicle it is changed but when deleting the color it is not deleted. <\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>An object is a collection of properties, where each property is an association between a name(or key) and a value.In JavaScript, an object is a standalone entity with properties and a specific type. For example,consider an animal. An animal has properties such as color, structure, and weight. Similarly, JavaScript objects&hellip; <a href=\"https:\/\/pheonixsolutions.com\/blog\/objects-in-javascript\/\" class=\"more-link read-more\" rel=\"bookmark\">Continue Reading <span class=\"screen-reader-text\">Objects in JavaScript<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":517,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":{"0":"post-8692","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-uncategorized","7":"h-entry","9":"h-as-article"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pheonix Solutions - We Empower Your Business Growth<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pheonixsolutions.com\/blog\/objects-in-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pheonix Solutions - We Empower Your Business Growth\" \/>\n<meta property=\"og:description\" content=\"An object is a collection of properties, where each property is an association between a name(or key) and a value.In JavaScript, an object is a standalone entity with properties and a specific type. For example,consider an animal. An animal has properties such as color, structure, and weight. Similarly, JavaScript objects&hellip; Continue Reading Objects in JavaScript\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/blog\/objects-in-javascript\/\" \/>\n<meta property=\"og:site_name\" content=\"PHEONIXSOLUTIONS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-03-22T11:02:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-22T11:03:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1960\" \/>\n\t<meta property=\"og:image:height\" content=\"229\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"rithani S.R\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:site\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"rithani S.R\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/objects-in-javascript\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/objects-in-javascript\\\/\"},\"author\":{\"name\":\"rithani S.R\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/4ef46a5281ce472ec238b189bc91492c\"},\"headline\":\"Objects in JavaScript\",\"datePublished\":\"2025-03-22T11:02:57+00:00\",\"dateModified\":\"2025-03-22T11:03:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/objects-in-javascript\\\/\"},\"wordCount\":391,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/objects-in-javascript\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/image-2-1024x120.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/objects-in-javascript\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/objects-in-javascript\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/objects-in-javascript\\\/\",\"name\":\"Pheonix Solutions - We Empower Your Business Growth\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/objects-in-javascript\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/objects-in-javascript\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/image-2-1024x120.png\",\"datePublished\":\"2025-03-22T11:02:57+00:00\",\"dateModified\":\"2025-03-22T11:03:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/objects-in-javascript\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/objects-in-javascript\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/objects-in-javascript\\\/#primaryimage\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/image-2.png\",\"contentUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/03\\\/image-2.png\",\"width\":1960,\"height\":229},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/objects-in-javascript\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Objects in JavaScript\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"name\":\"Pheonix Solutions\",\"description\":\"We Empower Your Business Growth\",\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\",\"name\":\"PheonixSolutions\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"width\":454,\"height\":300,\"caption\":\"PheonixSolutions\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/PheonixSolutions-209942982759387\\\/\",\"https:\\\/\\\/x.com\\\/pheonixsolution\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/4ef46a5281ce472ec238b189bc91492c\",\"name\":\"rithani S.R\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2e5bfa0516df11177982adde1a5c1886cb9d88dadfceb10b05b4481f516b8789?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2e5bfa0516df11177982adde1a5c1886cb9d88dadfceb10b05b4481f516b8789?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2e5bfa0516df11177982adde1a5c1886cb9d88dadfceb10b05b4481f516b8789?s=96&r=g\",\"caption\":\"rithani S.R\"},\"sameAs\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-admin\"],\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/author\\\/rithani\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pheonix Solutions - We Empower Your Business Growth","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pheonixsolutions.com\/blog\/objects-in-javascript\/","og_locale":"en_US","og_type":"article","og_title":"Pheonix Solutions - We Empower Your Business Growth","og_description":"An object is a collection of properties, where each property is an association between a name(or key) and a value.In JavaScript, an object is a standalone entity with properties and a specific type. For example,consider an animal. An animal has properties such as color, structure, and weight. Similarly, JavaScript objects&hellip; Continue Reading Objects in JavaScript","og_url":"https:\/\/pheonixsolutions.com\/blog\/objects-in-javascript\/","og_site_name":"PHEONIXSOLUTIONS","article_publisher":"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","article_published_time":"2025-03-22T11:02:57+00:00","article_modified_time":"2025-03-22T11:03:00+00:00","og_image":[{"width":1960,"height":229,"url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-2.png","type":"image\/png"}],"author":"rithani S.R","twitter_card":"summary_large_image","twitter_creator":"@pheonixsolution","twitter_site":"@pheonixsolution","twitter_misc":{"Written by":"rithani S.R","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/blog\/objects-in-javascript\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/objects-in-javascript\/"},"author":{"name":"rithani S.R","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/4ef46a5281ce472ec238b189bc91492c"},"headline":"Objects in JavaScript","datePublished":"2025-03-22T11:02:57+00:00","dateModified":"2025-03-22T11:03:00+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/objects-in-javascript\/"},"wordCount":391,"commentCount":0,"publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/objects-in-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-2-1024x120.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/blog\/objects-in-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/blog\/objects-in-javascript\/","url":"https:\/\/pheonixsolutions.com\/blog\/objects-in-javascript\/","name":"Pheonix Solutions - We Empower Your Business Growth","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/objects-in-javascript\/#primaryimage"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/objects-in-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-2-1024x120.png","datePublished":"2025-03-22T11:02:57+00:00","dateModified":"2025-03-22T11:03:00+00:00","breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/blog\/objects-in-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/blog\/objects-in-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/objects-in-javascript\/#primaryimage","url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-2.png","contentUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2025\/03\/image-2.png","width":1960,"height":229},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/blog\/objects-in-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Objects in JavaScript"}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/blog\/#website","url":"https:\/\/pheonixsolutions.com\/blog\/","name":"Pheonix Solutions","description":"We Empower Your Business Growth","publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/pheonixsolutions.com\/blog\/#organization","name":"PheonixSolutions","url":"https:\/\/pheonixsolutions.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","contentUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","width":454,"height":300,"caption":"PheonixSolutions"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","https:\/\/x.com\/pheonixsolution"]},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/4ef46a5281ce472ec238b189bc91492c","name":"rithani S.R","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2e5bfa0516df11177982adde1a5c1886cb9d88dadfceb10b05b4481f516b8789?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2e5bfa0516df11177982adde1a5c1886cb9d88dadfceb10b05b4481f516b8789?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2e5bfa0516df11177982adde1a5c1886cb9d88dadfceb10b05b4481f516b8789?s=96&r=g","caption":"rithani S.R"},"sameAs":["https:\/\/pheonixsolutions.com\/blog\/wp-admin"],"url":"https:\/\/pheonixsolutions.com\/blog\/author\/rithani\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7F4uM-2gc","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/8692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/517"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=8692"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/8692\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=8692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=8692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=8692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}