{"id":13167,"date":"2016-06-08T12:15:17","date_gmt":"2016-06-08T09:15:17","guid":{"rendered":"https:\/\/www.webcodegeeks.com\/?p=13167"},"modified":"2016-06-07T12:01:00","modified_gmt":"2016-06-07T09:01:00","slug":"basic-javascript-arrays-reminder","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/","title":{"rendered":"Basic JavaScript arrays reminder"},"content":{"rendered":"<p>I\u2019m pretty bad when it comes to remembering syntax details for languages I don\u2019t use every day, especially since I work with a few languages that use C-syntax and not just JavaScript. Also, it\u2019s not the kind of details I want to spend a lot of time studying since this information can easily be found.<\/p>\n<p>In most cases, it\u2019s easy to look up how something is done in the project you\u2019re working on, since you\u2019ll want to follow existing patterns anyway. But since I\u2019m working on refreshing my JavaScript knowledge and trying new patterns, I\u2019m often faced with a blank .js file. Arrays are always one of the first things that comes up when trying to solve a problem, so I thought a quick reminder could be useful.<\/p>\n<p>A standard JavaScript array is most often initialized with the bracket notation. There is also an <code>Array<\/code> object, but using the <code>Array()<\/code> constructor is not totally identical to using the bracket notation since it\u2019s an object in that case. To keep things simple I won\u2019t be using the object since standard arrays are a lot more common.<\/p>\n<pre class=\"brush:js\">var fruitsArray = [];<\/pre>\n<p>Inserting new items at the end of an existing array is done using the <code>push()<\/code> method. The array will resize to accommodate the new items. An array can also contain any items: it is not limited to one type.<\/p>\n<pre class=\"brush:js\">fruitsArray.push(\"Tomato\");\r\nfruitsArray.push(\"Squash\");\r\nfruitsArray.push(\"Potato\");\r\nfruitsArray.push(\"Carrot\");<\/pre>\n<p>Removing the last item at the end of an array is done using the <code>pop()<\/code> method. In the example, the \u201cCarrot\u201d item will be removed.<\/p>\n<pre class=\"brush:js\">fruitsArray.pop();<\/pre>\n<p>Sorting an array is done using the <code>sort()<\/code> method. By default, the items are sorted as strings, so it works for the example. For more complex cases, a sort function can be passed as a parameter to the method.<\/p>\n<pre class=\"brush:js\">fruitsArray.sort();<\/pre>\n<p>Looping in an array from the start to the end using the <code>for<\/code> loop, getting the items and printing them to the console. The example also shows the <code>length<\/code> property to get the current size of the array.<\/p>\n<pre class=\"brush:js\">for (i = 0; i &lt; fruitsArray.length; i++) { \r\n   console.log(i, fruitsArray[i]);\r\n}<\/pre>\n<p>Checking if a variable is an array, printing the result to the console. This condition is useful when you can\u2019t be sure about the type of a variable, for example because you received it as a parameter.<\/p>\n<pre class=\"brush:js\">if (fruitsArray instanceof Array)\r\n   console.log(\"fruitsArray is an array\");\r\nelse\r\n   console.log(\"fruitsArray is not an array\");<\/pre>\n<p>Finding an item in an array using the <code>indexOf()<\/code> method. This method returns the index of the item in the array, or -1 if the item doesn\u2019t exist.<\/p>\n<pre class=\"brush:js\">var itemIndex = fruitsArray.indexOf(\"Carrot\"); \/\/ Contains -1\r\nitemIndex = fruitsArray.indexOf(\"Potato\");     \/\/ Now contains 0<\/pre>\n<p>Finally, here are all the examples in one code snippet so you execute them and try for yourself :<\/p>\n<pre class=\"brush:js\">var fruitsArray = [];\r\n\r\n\/\/ Inserting items\r\nfruitsArray.push(\"Tomato\");\r\nfruitsArray.push(\"Squash\");\r\nfruitsArray.push(\"Potato\");\r\nfruitsArray.push(\"Carrot\")\r\nconsole.log(fruitsArray); \/\/ [\"Tomato\", \"Squash\", \"Potato\", \"Carrot\"]\r\n\r\n\/\/ Removing an item at the end of the array\r\nfruitsArray.pop();\r\nconsole.log(fruitsArray); \/\/ [\"Tomato\", \"Squash\", \"Potato\"]\r\n\r\n\/\/ Sort the array as string\r\nfruitsArray.sort();\r\nconsole.log(fruitsArray); \/\/ [\"Potato\", \"Squash\", \"Tomato\"]\r\n\r\n\/\/ Length of the array\r\nconsole.log(fruitsArray.length); \/\/ 3\r\n\r\n\/\/ Looping in an array, getting the items\r\nfor (i = 0; i &lt; fruitsArray.length; i++) { \r\n   console.log(i, fruitsArray[i]);\r\n}\r\n\r\n\/\/ Check if a variable is an array\r\nif (fruitsArray instanceof Array)\r\n   console.log(\"fruitsArray is an array\");\r\nelse\r\n   console.log(\"fruitsArray is not an array\");\r\n\r\n\/\/ Search for an item in an array (returns the index)\r\nconsole.log(fruitsArray.indexOf(\"Carrot\")); \/\/ -1\r\nconsole.log(fruitsArray.indexOf(\"Potato\")); \/\/ 0<\/pre>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td><span class=\"reference\">Reference: <\/span><\/td>\n<td><a href=\"http:\/\/blog.cindypotvin.com\/basic-javascript-arrays-reminder\/\">Basic JavaScript arrays reminder<\/a> from our <a href=\"http:\/\/www.webcodegeeks.com\/join-us\/wcg\/\">WCG partner<\/a> Cindy Potvin at the <a href=\"http:\/\/blog.cindypotvin.com\/\">Web, Mobile and Android Programming<\/a> blog.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I\u2019m pretty bad when it comes to remembering syntax details for languages I don\u2019t use every day, especially since I work with a few languages that use C-syntax and not just JavaScript. Also, it\u2019s not the kind of details I want to spend a lot of time studying since this information can easily be found. &hellip;<\/p>\n","protected":false},"author":36,"featured_media":920,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-13167","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>Basic JavaScript arrays reminder - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"I\u2019m pretty bad when it comes to remembering syntax details for languages I don\u2019t use every day, especially since I work with a few languages that use\" \/>\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\/basic-javascript-arrays-reminder\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Basic JavaScript arrays reminder - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"I\u2019m pretty bad when it comes to remembering syntax details for languages I don\u2019t use every day, especially since I work with a few languages that use\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/\" \/>\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:published_time\" content=\"2016-06-08T09:15:17+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=\"Cindy Potvin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/CindyPtn\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Cindy Potvin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/\"},\"author\":{\"name\":\"Cindy Potvin\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/5c5df30ebfba793235473ab81edbd742\"},\"headline\":\"Basic JavaScript arrays reminder\",\"datePublished\":\"2016-06-08T09:15:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/\"},\"wordCount\":436,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/#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\/basic-javascript-arrays-reminder\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/\",\"name\":\"Basic JavaScript arrays reminder - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg\",\"datePublished\":\"2016-06-08T09:15:17+00:00\",\"description\":\"I\u2019m pretty bad when it comes to remembering syntax details for languages I don\u2019t use every day, especially since I work with a few languages that use\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/#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\/basic-javascript-arrays-reminder\/#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\":\"Basic JavaScript arrays reminder\"}]},{\"@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\/5c5df30ebfba793235473ab81edbd742\",\"name\":\"Cindy Potvin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/957776d6732b26df4f63c29c8a3cb127ef09eb38b9f5befec1840ee3a1abed32?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/957776d6732b26df4f63c29c8a3cb127ef09eb38b9f5befec1840ee3a1abed32?s=96&d=mm&r=g\",\"caption\":\"Cindy Potvin\"},\"description\":\"Cindy is a programmer with over 5 years of experience developing web applications. She also works on Android applications and share her knowledge via her blog and on Twitter.\",\"sameAs\":[\"http:\/\/blog.cindypotvin.com\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/CindyPtn\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/cindy-potvin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Basic JavaScript arrays reminder - Web Code Geeks - 2026","description":"I\u2019m pretty bad when it comes to remembering syntax details for languages I don\u2019t use every day, especially since I work with a few languages that use","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\/basic-javascript-arrays-reminder\/","og_locale":"en_US","og_type":"article","og_title":"Basic JavaScript arrays reminder - Web Code Geeks - 2026","og_description":"I\u2019m pretty bad when it comes to remembering syntax details for languages I don\u2019t use every day, especially since I work with a few languages that use","og_url":"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_published_time":"2016-06-08T09:15:17+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":"Cindy Potvin","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/CindyPtn","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Cindy Potvin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/"},"author":{"name":"Cindy Potvin","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/5c5df30ebfba793235473ab81edbd742"},"headline":"Basic JavaScript arrays reminder","datePublished":"2016-06-08T09:15:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/"},"wordCount":436,"commentCount":0,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/#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\/basic-javascript-arrays-reminder\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/","url":"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/","name":"Basic JavaScript arrays reminder - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg","datePublished":"2016-06-08T09:15:17+00:00","description":"I\u2019m pretty bad when it comes to remembering syntax details for languages I don\u2019t use every day, especially since I work with a few languages that use","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/javascript\/basic-javascript-arrays-reminder\/#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\/basic-javascript-arrays-reminder\/#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":"Basic JavaScript arrays reminder"}]},{"@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\/5c5df30ebfba793235473ab81edbd742","name":"Cindy Potvin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/957776d6732b26df4f63c29c8a3cb127ef09eb38b9f5befec1840ee3a1abed32?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/957776d6732b26df4f63c29c8a3cb127ef09eb38b9f5befec1840ee3a1abed32?s=96&d=mm&r=g","caption":"Cindy Potvin"},"description":"Cindy is a programmer with over 5 years of experience developing web applications. She also works on Android applications and share her knowledge via her blog and on Twitter.","sameAs":["http:\/\/blog.cindypotvin.com\/","https:\/\/x.com\/https:\/\/twitter.com\/CindyPtn"],"url":"https:\/\/www.webcodegeeks.com\/author\/cindy-potvin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/13167","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\/36"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=13167"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/13167\/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=13167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=13167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=13167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}