{"id":2314,"date":"2023-11-09T02:54:55","date_gmt":"2023-11-09T02:54:55","guid":{"rendered":"https:\/\/easycodingschool.com\/?p=2314"},"modified":"2023-11-09T02:56:01","modified_gmt":"2023-11-09T02:56:01","slug":"use-dot-notation-to-access-the-properties-of-an-object","status":"publish","type":"post","link":"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/","title":{"rendered":"Use Dot Notation to Access the Properties of an Object"},"content":{"rendered":"<p>An object with multiple properties was constructed in the previous task. You will now see how to retrieve those<br \/>\nproperties&#8217; values. Here&#8217;s one instance:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>let Dog = {\r\nname: \"BullDog\",\r\nnumLegs: 4\r\n};\r\n\r\nconsole.log(Dog.name);<\/code><\/pre>\n<\/div>\n<p>To get the value of Aflac, use dot notation on the object name, Dog, followed by the property name, name.<\/p>\n<p>Print the dog object&#8217;s two properties to your console.<\/p>\n<p><strong>Note:<\/strong><span>\u00a0We welcome your feedback at\u00a0<\/span><a href=\"https:\/\/easycodingschool.com\/blog\/\">Easy coding School<\/a><span>. Please don\u2019t hesitate to share your\u00a0<\/span><a href=\"https:\/\/easycodingschool.com\/blog\/contact\/\" target=\"_blank\" rel=\"noopener\">suggestions<\/a><span>\u00a0or any issues you might have with the article!<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>An object with multiple properties was constructed in the previous task<\/p>\n","protected":false},"author":1,"featured_media":2315,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[215],"tags":[73,201,69,137,127,108,126,64,216],"class_list":["post-2314","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript-oops","tag-basicjavascipt","tag-coding","tag-core-javascript","tag-easy","tag-easy-coding","tag-easy-coding-school","tag-easycoding","tag-easycodingschool","tag-javascript-oops"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Use Dot Notation to Access the Properties of an Object - Easy Coding School<\/title>\n<meta name=\"description\" content=\"An object with multiple properties was constructed in the previous task\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Use Dot Notation to Access the Properties of an Object - Easy Coding School\" \/>\n<meta property=\"og:description\" content=\"An object with multiple properties was constructed in the previous task\" \/>\n<meta property=\"og:url\" content=\"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/\" \/>\n<meta property=\"og:site_name\" content=\"Easy Coding School\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-09T02:54:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-09T02:56:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/11\/Use-Dot-Notation-to-Access-the-Properties-of-an-Object.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"660\" \/>\n\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"gauravkumarjha19@gmail.com\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"gauravkumarjha19@gmail.com\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/\"},\"author\":{\"name\":\"gauravkumarjha19@gmail.com\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/9cabe8e90728da7f26676cbd1744558b\"},\"headline\":\"Use Dot Notation to Access the Properties of an Object\",\"datePublished\":\"2023-11-09T02:54:55+00:00\",\"dateModified\":\"2023-11-09T02:56:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/\"},\"wordCount\":91,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/11\/Use-Dot-Notation-to-Access-the-Properties-of-an-Object.jpg\",\"keywords\":[\"Basicjavascipt\",\"Coding\",\"Core Javascript\",\"Easy\",\"Easy Coding\",\"Easy Coding School\",\"EasyCoding\",\"EasyCodingSchool\",\"javascript OOPs\"],\"articleSection\":[\"Javascript OOPS\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/\",\"url\":\"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/\",\"name\":\"Use Dot Notation to Access the Properties of an Object - Easy Coding School\",\"isPartOf\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/11\/Use-Dot-Notation-to-Access-the-Properties-of-an-Object.jpg\",\"datePublished\":\"2023-11-09T02:54:55+00:00\",\"dateModified\":\"2023-11-09T02:56:01+00:00\",\"description\":\"An object with multiple properties was constructed in the previous task\",\"breadcrumb\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/#primaryimage\",\"url\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/11\/Use-Dot-Notation-to-Access-the-Properties-of-an-Object.jpg\",\"contentUrl\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/11\/Use-Dot-Notation-to-Access-the-Properties-of-an-Object.jpg\",\"width\":660,\"height\":350,\"caption\":\"Use Dot Notation to Access the Properties of an Object\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/easycodingschool.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Use Dot Notation to Access the Properties of an Object\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#website\",\"url\":\"https:\/\/easycodingschool.com\/blog\/\",\"name\":\"Easy Coding School\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/easycodingschool.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#organization\",\"name\":\"Easy Coding School\",\"url\":\"https:\/\/easycodingschool.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/07\/New-Project-10.png\",\"contentUrl\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/07\/New-Project-10.png\",\"width\":310,\"height\":114,\"caption\":\"Easy Coding School \"},\"image\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/9cabe8e90728da7f26676cbd1744558b\",\"name\":\"gauravkumarjha19@gmail.com\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6846a3cc9bd6cb5b779aef260fe379c4b93fa20e1a4c753eb023ff7c08d7c668?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6846a3cc9bd6cb5b779aef260fe379c4b93fa20e1a4c753eb023ff7c08d7c668?s=96&d=mm&r=g\",\"caption\":\"gauravkumarjha19@gmail.com\"},\"sameAs\":[\"https:\/\/easycodingschool.com\/blog\"],\"url\":\"https:\/\/easycodingschool.com\/blog\/author\/gauravkumarjha19gmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Use Dot Notation to Access the Properties of an Object - Easy Coding School","description":"An object with multiple properties was constructed in the previous task","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:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/","og_locale":"en_US","og_type":"article","og_title":"Use Dot Notation to Access the Properties of an Object - Easy Coding School","og_description":"An object with multiple properties was constructed in the previous task","og_url":"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/","og_site_name":"Easy Coding School","article_published_time":"2023-11-09T02:54:55+00:00","article_modified_time":"2023-11-09T02:56:01+00:00","og_image":[{"width":660,"height":350,"url":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/11\/Use-Dot-Notation-to-Access-the-Properties-of-an-Object.jpg","type":"image\/jpeg"}],"author":"gauravkumarjha19@gmail.com","twitter_card":"summary_large_image","twitter_misc":{"Written by":"gauravkumarjha19@gmail.com"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/#article","isPartOf":{"@id":"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/"},"author":{"name":"gauravkumarjha19@gmail.com","@id":"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/9cabe8e90728da7f26676cbd1744558b"},"headline":"Use Dot Notation to Access the Properties of an Object","datePublished":"2023-11-09T02:54:55+00:00","dateModified":"2023-11-09T02:56:01+00:00","mainEntityOfPage":{"@id":"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/"},"wordCount":91,"commentCount":0,"publisher":{"@id":"https:\/\/easycodingschool.com\/blog\/#organization"},"image":{"@id":"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/#primaryimage"},"thumbnailUrl":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/11\/Use-Dot-Notation-to-Access-the-Properties-of-an-Object.jpg","keywords":["Basicjavascipt","Coding","Core Javascript","Easy","Easy Coding","Easy Coding School","EasyCoding","EasyCodingSchool","javascript OOPs"],"articleSection":["Javascript OOPS"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/","url":"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/","name":"Use Dot Notation to Access the Properties of an Object - Easy Coding School","isPartOf":{"@id":"https:\/\/easycodingschool.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/#primaryimage"},"image":{"@id":"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/#primaryimage"},"thumbnailUrl":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/11\/Use-Dot-Notation-to-Access-the-Properties-of-an-Object.jpg","datePublished":"2023-11-09T02:54:55+00:00","dateModified":"2023-11-09T02:56:01+00:00","description":"An object with multiple properties was constructed in the previous task","breadcrumb":{"@id":"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/#primaryimage","url":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/11\/Use-Dot-Notation-to-Access-the-Properties-of-an-Object.jpg","contentUrl":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/11\/Use-Dot-Notation-to-Access-the-Properties-of-an-Object.jpg","width":660,"height":350,"caption":"Use Dot Notation to Access the Properties of an Object"},{"@type":"BreadcrumbList","@id":"https:\/\/easycodingschool.com\/blog\/use-dot-notation-to-access-the-properties-of-an-object\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/easycodingschool.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Use Dot Notation to Access the Properties of an Object"}]},{"@type":"WebSite","@id":"https:\/\/easycodingschool.com\/blog\/#website","url":"https:\/\/easycodingschool.com\/blog\/","name":"Easy Coding School","description":"","publisher":{"@id":"https:\/\/easycodingschool.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/easycodingschool.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/easycodingschool.com\/blog\/#organization","name":"Easy Coding School","url":"https:\/\/easycodingschool.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/easycodingschool.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/07\/New-Project-10.png","contentUrl":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/07\/New-Project-10.png","width":310,"height":114,"caption":"Easy Coding School "},"image":{"@id":"https:\/\/easycodingschool.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/9cabe8e90728da7f26676cbd1744558b","name":"gauravkumarjha19@gmail.com","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6846a3cc9bd6cb5b779aef260fe379c4b93fa20e1a4c753eb023ff7c08d7c668?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6846a3cc9bd6cb5b779aef260fe379c4b93fa20e1a4c753eb023ff7c08d7c668?s=96&d=mm&r=g","caption":"gauravkumarjha19@gmail.com"},"sameAs":["https:\/\/easycodingschool.com\/blog"],"url":"https:\/\/easycodingschool.com\/blog\/author\/gauravkumarjha19gmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/posts\/2314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2314"}],"version-history":[{"count":2,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/posts\/2314\/revisions"}],"predecessor-version":[{"id":2317,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/posts\/2314\/revisions\/2317"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/media\/2315"}],"wp:attachment":[{"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}