{"id":29782,"date":"2022-05-25T08:37:03","date_gmt":"2022-05-25T03:07:03","guid":{"rendered":"https:\/\/tutorial.eyehunts.com\/?p=29782"},"modified":"2023-12-21T17:46:57","modified_gmt":"2023-12-21T12:16:57","slug":"javascript-object-freeze-method","status":"publish","type":"post","link":"https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method\/","title":{"rendered":"JavaScript Object freeze | Method"},"content":{"rendered":"\n<p>The JavaScript object freeze method is used to make an object <a href=\"https:\/\/tutorial.eyehunts.com\/python\/immutable-in-python-object-basics\/\">immutable<\/a>, i.e. you cannot change its properties. It accepts an object and returns the same object. Now the object cannot have any of its properties removed or any new properties added.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Object.freeze(obj);<\/code><\/pre>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">JavaScript Object freeze example<\/h2>\n\n\n\n<p>Simple example code.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;body&gt;\n  &lt;script&gt;\n   const obj = {\n    prop: 100\n  };\n\n  Object.freeze(obj);\n\n  obj.prop = 200;\n\n  console.log(obj.prop);\n  console.log(obj)\n\n&lt;\/script&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong>:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"263\" height=\"111\" src=\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/05\/JavaScript-Object-freeze.jpg?resize=263%2C111&#038;ssl=1\" alt=\"JavaScript Object freeze\" class=\"wp-image-29808\"\/><\/figure><\/div>\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Can&#8217;t mutate a frozen object<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>object1 = {\n  prop1: 1,\n  prop2: 2\n}\n\nobject2 = Object.freeze(object1);\n\nconsole.log(object1 === object2); \/\/ both objects are refer to the same instance\n\nobject2.prop3 = 3; \/\/ no new property can be added, won't work\n\ndelete object2.prop1; \/\/ no property can be deleted, won't work\n\nconsole.log(object2); \/\/ object unchanged<\/code><\/pre>\n\n\n\n<p><strong>Objects with references aren&#8217;t fully frozen<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>const object = {\n  prop1: 1,\n  nestedObj: {\n    nestedProp1: 1,\n    nestedProp2: 2,\n  } \n}\n\n\nconst frozen = Object.freeze(object);\n\nfrozen.prop1 = 5; \/\/ won't have any effect\nfrozen.nestedObj.nestedProp1 = 5; \/\/will update because the nestedObject isn't frozen\n\nconsole.log(frozen);<\/code><\/pre>\n\n\n\n<p>It&#8217;s important to note that <code>Object.freeze()<\/code> works at the top level of the object. If the object has nested objects, the nested objects are not automatically frozen. You would need to recursively call <code>Object.freeze()<\/code> on each nested object if you want them to be frozen as well.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>const nestedObject = {\r\n  nestedProp: 'nestedValue'\r\n};\r\n\r\nconst myObject = {\r\n  prop1: 'value1',\r\n  prop2: nestedObject\r\n};\r\n\r\nObject.freeze(myObject);\r\nObject.freeze(myObject.prop2);\r\n\r\n\/\/ Now both myObject and its nested object are frozen\r<\/code><\/pre>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Do comment if you have any doubts or suggestions on this JS object topic.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>Note:<\/strong>&nbsp;The<strong>&nbsp;All JS Examples codes&nbsp;<\/strong>are&nbsp;tested on the Firefox browser and the Chrome browser.<\/p><p>OS:&nbsp;<strong>Windows 10<\/strong><\/p><p>Code: HTML 5 Version<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>The JavaScript object freeze method is used to make an object immutable, i.e. you cannot change its properties. It accepts an object and returns the same object. Now the object cannot have any of its properties removed or any new properties added. JavaScript Object freeze example Simple example code. Output: Can&#8217;t mutate a frozen object&hellip;&nbsp;<a href=\"https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">JavaScript Object freeze | Method<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","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":[69],"tags":[133],"post_series":[],"class_list":["post-29782","post","type-post","status-publish","format-standard","hentry","category-js","tag-js-object"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JavaScript Object freeze | Method<\/title>\n<meta name=\"description\" content=\"The JavaScript object freeze method is used to make an object immutable, i.e. you cannot change its properties. It accepts an object and...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript Object freeze | Method\" \/>\n<meta property=\"og:description\" content=\"The JavaScript object freeze method is used to make an object immutable, i.e. you cannot change its properties. It accepts an object and...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-25T03:07:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-21T12:16:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/05\/JavaScript-Object-freeze.jpg\" \/>\n<meta name=\"author\" content=\"Rohit\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rohit\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method\/\",\"url\":\"https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method\/\",\"name\":\"JavaScript Object freeze | Method\",\"isPartOf\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/05\/JavaScript-Object-freeze.jpg\",\"datePublished\":\"2022-05-25T03:07:03+00:00\",\"dateModified\":\"2023-12-21T12:16:57+00:00\",\"author\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1\"},\"description\":\"The JavaScript object freeze method is used to make an object immutable, i.e. you cannot change its properties. It accepts an object and...\",\"breadcrumb\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/05\/JavaScript-Object-freeze.jpg?fit=263%2C111&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/05\/JavaScript-Object-freeze.jpg?fit=263%2C111&ssl=1\",\"width\":263,\"height\":111},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tutorial.eyehunts.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript Object freeze | Method\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/#website\",\"url\":\"https:\/\/tutorial.eyehunts.com\/\",\"name\":\"Tutorial\",\"description\":\"By EyeHunts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/tutorial.eyehunts.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1\",\"name\":\"Rohit\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777374971\",\"contentUrl\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777374971\",\"caption\":\"Rohit\"},\"description\":\"Degree in Computer Science and Engineer: App Developer and has multiple Programming languages experience. Enthusiasm for technology &amp; like learning technical.\",\"url\":\"https:\/\/tutorial.eyehunts.com\/author\/rohit\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JavaScript Object freeze | Method","description":"The JavaScript object freeze method is used to make an object immutable, i.e. you cannot change its properties. It accepts an object and...","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:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript Object freeze | Method","og_description":"The JavaScript object freeze method is used to make an object immutable, i.e. you cannot change its properties. It accepts an object and...","og_url":"https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method\/","og_site_name":"Tutorial","article_published_time":"2022-05-25T03:07:03+00:00","article_modified_time":"2023-12-21T12:16:57+00:00","og_image":[{"url":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/05\/JavaScript-Object-freeze.jpg","type":"","width":"","height":""}],"author":"Rohit","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rohit","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method\/","url":"https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method\/","name":"JavaScript Object freeze | Method","isPartOf":{"@id":"https:\/\/tutorial.eyehunts.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method\/#primaryimage"},"image":{"@id":"https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method\/#primaryimage"},"thumbnailUrl":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/05\/JavaScript-Object-freeze.jpg","datePublished":"2022-05-25T03:07:03+00:00","dateModified":"2023-12-21T12:16:57+00:00","author":{"@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1"},"description":"The JavaScript object freeze method is used to make an object immutable, i.e. you cannot change its properties. It accepts an object and...","breadcrumb":{"@id":"https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method\/#primaryimage","url":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/05\/JavaScript-Object-freeze.jpg?fit=263%2C111&ssl=1","contentUrl":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/05\/JavaScript-Object-freeze.jpg?fit=263%2C111&ssl=1","width":263,"height":111},{"@type":"BreadcrumbList","@id":"https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tutorial.eyehunts.com\/"},{"@type":"ListItem","position":2,"name":"JavaScript Object freeze | Method"}]},{"@type":"WebSite","@id":"https:\/\/tutorial.eyehunts.com\/#website","url":"https:\/\/tutorial.eyehunts.com\/","name":"Tutorial","description":"By EyeHunts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tutorial.eyehunts.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1","name":"Rohit","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/image\/","url":"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777374971","contentUrl":"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777374971","caption":"Rohit"},"description":"Degree in Computer Science and Engineer: App Developer and has multiple Programming languages experience. Enthusiasm for technology &amp; like learning technical.","url":"https:\/\/tutorial.eyehunts.com\/author\/rohit\/"}]}},"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":37546,"url":"https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-method-2\/","url_meta":{"origin":29782,"position":0},"title":"JavaScript Object freeze() | Method","author":"Rohit","date":"March 29, 2023","format":false,"excerpt":"JavaScript Object freeze() method is used to prevent the modification of an object by making its properties read-only. When an object is frozen using Object.freeze(), its properties become read-only and cannot be changed, added, or removed. Object.freeze(obj) JavaScript Object freeze() example Simple example code. <!DOCTYPE html> <html> <body> <script> const\u2026","rel":"","context":"In &quot;JavaScript&quot;","block_context":{"text":"JavaScript","link":"https:\/\/tutorial.eyehunts.com\/category\/js\/"},"img":{"alt_text":"JavaScript Object freeze() Method","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/03\/JavaScript-Object-freeze-Method.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":29987,"url":"https:\/\/tutorial.eyehunts.com\/js\/javascript-immutable-object-code\/","url_meta":{"origin":29782,"position":1},"title":"JavaScript immutable object | Code","author":"Rohit","date":"June 21, 2022","format":false,"excerpt":"JavaScript immutable objects are objects whose state cannot be changed once the object is created. Object.freeze(obj) You can freeze an object that no one can change. You can not add\/remove properties or modify property values. The frozen object is no longer extensible. Use Object.freeze(obj) to freeze an object. Use Object.isFrozen(obj)\u2026","rel":"","context":"In &quot;JavaScript&quot;","block_context":{"text":"JavaScript","link":"https:\/\/tutorial.eyehunts.com\/category\/js\/"},"img":{"alt_text":"JavaScript immutable object","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/06\/JavaScript-immutable-object.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":37579,"url":"https:\/\/tutorial.eyehunts.com\/js\/javascript-object-freeze-vs-seal\/","url_meta":{"origin":29782,"position":2},"title":"JavaScript object freeze vs seal","author":"Rohit","date":"March 31, 2023","format":false,"excerpt":"JavaScript's Object.freeze() and Object.seal() methods are used to prevent changes to an object. Object.freeze() creates a read-only object that cannot be modified, while Object.seal() allows modification of existing properties but preventing adding or removing properties. Object freeze() creates a read-only object by preventing any changes to its properties. Once an\u2026","rel":"","context":"In &quot;JavaScript&quot;","block_context":{"text":"JavaScript","link":"https:\/\/tutorial.eyehunts.com\/category\/js\/"},"img":{"alt_text":"JavaScript object freeze vs seal","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/03\/JavaScript-object-freeze-vs-seal.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":29768,"url":"https:\/\/tutorial.eyehunts.com\/js\/javascript-const-object-example-code\/","url_meta":{"origin":29782,"position":3},"title":"JavaScript const object | Example code","author":"Rohit","date":"May 27, 2022","format":false,"excerpt":"According to ES6, constants are used to make \"variables which can't be re-assigned new content\". The JavaScript const object can still be altered because the const keyword makes a variable itself immutable, not its assigned content. Therefore, it's possible to change the content of the object that is declared with\u2026","rel":"","context":"In &quot;JavaScript&quot;","block_context":{"text":"JavaScript","link":"https:\/\/tutorial.eyehunts.com\/category\/js\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/05\/JavaScript-const-object.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":24958,"url":"https:\/\/tutorial.eyehunts.com\/js\/how-to-print-object-in-javascript-example-code\/","url_meta":{"origin":29782,"position":4},"title":"How to print object in JavaScript | Example code","author":"Rohit","date":"March 14, 2022","format":false,"excerpt":"You can print objects using Window.alert() or console.log() or console.dir() function in JavaScript. Print objects in JavaScript Simple example code. Using Window.alert() function This method will display [object Object] as the output. You have to convert the object into a string first using the JSON.stringify() method. <!DOCTYPE html> <html> <body>\u2026","rel":"","context":"In &quot;JavaScript&quot;","block_context":{"text":"JavaScript","link":"https:\/\/tutorial.eyehunts.com\/category\/js\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/03\/How-to-print-object-in-JavaScript.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/03\/How-to-print-object-in-JavaScript.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/03\/How-to-print-object-in-JavaScript.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":24960,"url":"https:\/\/tutorial.eyehunts.com\/js\/console-log-object-in-javascript-multiple-ways\/","url_meta":{"origin":29782,"position":5},"title":"Console log object in JavaScript | Multiple ways","author":"Rohit","date":"February 10, 2022","format":false,"excerpt":"The basic method is used console.log(object) to console log objects in JavaScript. The Console method log() outputs a message to the web console. console.log(obj) Note: you must only log the object. For example, this won't work: console.log('My object : ' + obj) Note: You can also use a comma in\u2026","rel":"","context":"In &quot;JavaScript&quot;","block_context":{"text":"JavaScript","link":"https:\/\/tutorial.eyehunts.com\/category\/js\/"},"img":{"alt_text":"Console log object in JavaScript","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/02\/Console-log-object-in-JavaScript.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/02\/Console-log-object-in-JavaScript.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/02\/Console-log-object-in-JavaScript.jpg?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/29782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/comments?post=29782"}],"version-history":[{"count":1,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/29782\/revisions"}],"predecessor-version":[{"id":42289,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/29782\/revisions\/42289"}],"wp:attachment":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/media?parent=29782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/categories?post=29782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/tags?post=29782"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/post_series?post=29782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}