{"id":3337,"date":"2015-04-27T12:15:36","date_gmt":"2015-04-27T09:15:36","guid":{"rendered":"http:\/\/www.webcodegeeks.com\/?p=3337"},"modified":"2018-01-10T15:11:41","modified_gmt":"2018-01-10T13:11:41","slug":"javascript-array-length-example","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/","title":{"rendered":"Javascript Array Length Example"},"content":{"rendered":"<p>Every programmer learning a new language has to study the way it manages arrays and their size. <\/p>\n<p>In native Javascript, <code>length<\/code> is a property of every array and obviously it is used to retrieve or set the length of that array.<\/p>\n<p>The <code>length<\/code> property is a part of the Array prototype and may be a non-negative integer less then 2<sup>32<\/sup>.<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n[ulp id=&#8217;tCIwOngQUb3zSUuF&#8217;]<br \/>\n&nbsp;<br \/>\nLet&#8217;s look at a simple case of usage, where we&#8217;ll just initialize a new array and output its length.<\/p>\n<pre class=\"brush:js\">\r\n        var arr = [ \"First\", \"Second\", \"Third\", \"Fourth\" ];\r\n        document.write(arr.length); \/\/ outputs \"4\"\r\n<\/pre>\n<p>The length of an array is dynamic so we can fill the array dynamically<\/p>\n<pre class=\"brush:js\">\r\n        var arr = [];\r\n        for (var i = 0; i &lt; 5; ++i) {\r\n            arr[i] = i;\r\n            document.writeln(arr.length); \/\/ outputs i + 1\r\n        }\r\n<\/pre>\n<p>If you don&#8217;t want to store the array&#8217;s size or you want to add one more element at the end of it (as in stack), you can use the following approach. The example adds all the properties of an object to an array:<\/p>\n<pre class=\"brush:js\">\r\n        var obj = {\r\n            zero: '0',\r\n            one: 1,\r\n            two: new Date()\r\n        };\r\n        var arr = [];\r\n        for (elem in obj)\r\n            arr[arr.length] = obj[elem];\r\n        console.log(obj);\r\n        console.log(arr);\r\n<\/pre>\n<p>But if we use numbered indexes, <code>length<\/code> is not defined by the number of elements in there but by the largest index + 1<\/p>\n<pre class=\"brush:js\">\r\n        var arr = [];\r\n        arr[1] = 1;\r\n        arr[4] = 4;\r\n        document.writeln(arr); \/\/ [ , 1, , , 4 ]\r\n        document.write(arr.length); \/\/ length is 5 not 2\r\n<\/pre>\n<p>And when we use for example string indexes (treated as object properties) array behaves more like a map. Javascript defines array as an object and the <code>length<\/code> will return 0:<\/p>\n<pre class=\"brush:js\">\r\n        var arr = [];\r\n        arr['first'] = 1;\r\n        arr['fourth'] = 4;\r\n        console.log(arr); \/\/ {first: 1, fourth: 4}\r\n        document.write(arr.length); \/\/ length is 0\r\n<\/pre>\n<p>What about two-dimensional arrays?<\/p>\n<p>Since a two-dimensional array is essentially an array which contains arrays, the <code>array.length<\/code> method returns the length of the parent-array;<\/p>\n<pre class=\"brush:js\">\r\n        var arr = [];\r\n        arr[0] = [];\r\n        arr[1] = [ \"One element\"];\r\n        arr[2] = [ 2, 3 ];\r\n        arr[3] = [ new Date(), null, \"Third\", 1 ];\r\n        console.log(arr);\r\n        document.write(arr.length); \/\/ outputs 4\r\n<\/pre>\n<p>If you want to reduce the size of an array, you can simply set the length property:<\/p>\n<pre class=\"brush:js\">\r\n        var arr = [ 0, 1, 2, 3, 4, 5, 6, 7 ];\r\n        document.writeln(\"Initial length = \" + arr.length);\r\n        arr.length = 5; \/\/ [ 0, 1, 2, 3, 4 ]\r\n        document.write(\"New length = \" + arr.length);\r\n<\/pre>\n<p>If new array length is larger than current the array will be filled with undefined values:<\/p>\n<pre class=\"brush:js\">\r\n        var arr = [ 0, \"1\", new Date() ];\r\n        document.writeln(\"Initial length = \" + arr.length);\r\n        arr.length = 5; \/\/ [ 0, 1, 2, ,  ]\r\n        document.writeln(\"New length = \" + arr.length);\r\n        console.log(arr[4]); \/\/ undefined\r\n<\/pre>\n<p>Be careful while modifying an array and iterating over it using <code>length<\/code> property at the same time:<\/p>\n<pre class=\"brush:js\">\r\n        var arr = [ 10, 20, 30 ];\r\n        var i = 0;\r\n        while (i &lt; arr.length) {\r\n            arr[arr.length] = i;\r\n            ++i;\r\n        } \/\/ never ends up\r\n<\/pre>\n<p>Some frameworks like <a href=\"http:\/\/prototypejs.org\/doc\/latest\/language\/Array\/prototype\/size\/\">Prototype<\/a> may define something like <code>size()<\/code> method in Array prototype but one should notice that it&#8217;s not a native javascript feature. Here is a quick example:<\/p>\n<pre class=\"brush:js\">\r\nvar arr = new Array();\r\narr.push(1);\r\narr.push(2);\r\ndocument.write(arr.size());\r\n<\/pre>\n<div class=\"download\"><strong>Download<\/strong><br \/>\nYou can download the full source code of this example here: <a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2015\/04\/Javascript_array_length_example.rar\"><strong>JavascriptArrayLength<\/strong><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Every programmer learning a new language has to study the way it manages arrays and their size. In native Javascript, length is a property of every array and obviously it is used to retrieve or set the length of that array. The length property is a part of the Array prototype and may be a &hellip;<\/p>\n","protected":false},"author":74,"featured_media":920,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-3337","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Javascript Array Length Example - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"Every programmer learning a new language has to study the way it manages arrays and their size. In native Javascript, length is a property of every array\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Javascript Array Length Example - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"Every programmer learning a new language has to study the way it manages arrays and their size. In native Javascript, length is a property of every array\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webcodegeeks\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/dimbasick\" \/>\n<meta property=\"article:published_time\" content=\"2015-04-27T09:15:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-10T13:11:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Dmitry Mishchenko\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dimbasick\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dmitry Mishchenko\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/\"},\"author\":{\"name\":\"Dmitry Mishchenko\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/590734bdf375bf270d42b06f878f6e57\"},\"headline\":\"Javascript Array Length Example\",\"datePublished\":\"2015-04-27T09:15:36+00:00\",\"dateModified\":\"2018-01-10T13:11:41+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/\"},\"wordCount\":312,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg\",\"articleSection\":[\"JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/\",\"name\":\"Javascript Array Length Example - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg\",\"datePublished\":\"2015-04-27T09:15:36+00:00\",\"dateModified\":\"2018-01-10T13:11:41+00:00\",\"description\":\"Every programmer learning a new language has to study the way it manages arrays and their size. In native Javascript, length is a property of every array\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/#primaryimage\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/javascript\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Javascript Array Length Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"name\":\"Web Code Geeks\",\"description\":\"Web Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webcodegeeks\",\"https:\/\/x.com\/webcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/590734bdf375bf270d42b06f878f6e57\",\"name\":\"Dmitry Mishchenko\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/52a7208c47939e10b039bf165c7a545b198cc1d6b716ab0eea58add16782782c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/52a7208c47939e10b039bf165c7a545b198cc1d6b716ab0eea58add16782782c?s=96&d=mm&r=g\",\"caption\":\"Dmitry Mishchenko\"},\"description\":\"This year I graduate from Applied Mathematics department of Brest State University. I'm fond of genetic algorithms and my degree work will be about generating timetables. Also I'm keen on programming and web-development, especially Java and Javascript. Now I work as a Java Developer at Java department of VRP Consulting.\",\"sameAs\":[\"https:\/\/www.facebook.com\/dimbasick\",\"https:\/\/www.linkedin.com\/profile\/view?id=296022174\",\"https:\/\/x.com\/dimbasick\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/dmitry-mishchenko\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Javascript Array Length Example - Web Code Geeks - 2026","description":"Every programmer learning a new language has to study the way it manages arrays and their size. In native Javascript, length is a property of every array","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:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/","og_locale":"en_US","og_type":"article","og_title":"Javascript Array Length Example - Web Code Geeks - 2026","og_description":"Every programmer learning a new language has to study the way it manages arrays and their size. In native Javascript, length is a property of every array","og_url":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_author":"https:\/\/www.facebook.com\/dimbasick","article_published_time":"2015-04-27T09:15:36+00:00","article_modified_time":"2018-01-10T13:11:41+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg","type":"image\/jpeg"}],"author":"Dmitry Mishchenko","twitter_card":"summary_large_image","twitter_creator":"@dimbasick","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Dmitry Mishchenko","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/"},"author":{"name":"Dmitry Mishchenko","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/590734bdf375bf270d42b06f878f6e57"},"headline":"Javascript Array Length Example","datePublished":"2015-04-27T09:15:36+00:00","dateModified":"2018-01-10T13:11:41+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/"},"wordCount":312,"commentCount":0,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg","articleSection":["JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/","url":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/","name":"Javascript Array Length Example - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg","datePublished":"2015-04-27T09:15:36+00:00","dateModified":"2018-01-10T13:11:41+00:00","description":"Every programmer learning a new language has to study the way it manages arrays and their size. In native Javascript, length is a property of every array","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/#primaryimage","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.webcodegeeks.com\/javascript\/javascript-array-length-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"JavaScript","item":"https:\/\/www.webcodegeeks.com\/category\/javascript\/"},{"@type":"ListItem","position":3,"name":"Javascript Array Length Example"}]},{"@type":"WebSite","@id":"https:\/\/www.webcodegeeks.com\/#website","url":"https:\/\/www.webcodegeeks.com\/","name":"Web Code Geeks","description":"Web Developers Resource Center","publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.webcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webcodegeeks","https:\/\/x.com\/webcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/590734bdf375bf270d42b06f878f6e57","name":"Dmitry Mishchenko","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/52a7208c47939e10b039bf165c7a545b198cc1d6b716ab0eea58add16782782c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/52a7208c47939e10b039bf165c7a545b198cc1d6b716ab0eea58add16782782c?s=96&d=mm&r=g","caption":"Dmitry Mishchenko"},"description":"This year I graduate from Applied Mathematics department of Brest State University. I'm fond of genetic algorithms and my degree work will be about generating timetables. Also I'm keen on programming and web-development, especially Java and Javascript. Now I work as a Java Developer at Java department of VRP Consulting.","sameAs":["https:\/\/www.facebook.com\/dimbasick","https:\/\/www.linkedin.com\/profile\/view?id=296022174","https:\/\/x.com\/dimbasick"],"url":"https:\/\/www.webcodegeeks.com\/author\/dmitry-mishchenko\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/3337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/users\/74"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=3337"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/3337\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media\/920"}],"wp:attachment":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media?parent=3337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=3337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=3337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}