{"id":1105,"date":"2014-10-17T15:26:18","date_gmt":"2014-10-17T12:26:18","guid":{"rendered":"http:\/\/www.webcodegeeks.com\/?p=1105"},"modified":"2018-01-10T15:00:14","modified_gmt":"2018-01-10T13:00:14","slug":"5-nifty-javascript-tricks-that-you-may-not-know","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/","title":{"rendered":"5 nifty JavaScript tricks that you may not know"},"content":{"rendered":"<p>Over the years, I have seen several JavaScript techniques that are particularly clever. Here&#8217;s a short list of 5 such techniques that I have been using again and again. I hope it inspires you too to rethink how you write certain piece of code.<\/p>\n<p>And, please note that some people may think clever coding impacts readability and they might be right. So, grasp the concept and apply it in your code wherever you think it helps.<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n[ulp id=&#8217;tCIwOngQUb3zSUuF&#8217;]<\/p>\n<h2>1. A compact string comparision<\/h2>\n<p>Let&#8217;s say you want to check if a string value is present in a set of strings. You obviously go for a <code>if<\/code> statement as below.<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">if(fruit === 'apple' || fruit === 'banana' || fruit === 'chikoo'){\r\n    doMagic();\r\n}<\/pre>\n<p>Here&#8217;s a compact version of above code:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">if({apple:1,banana:1,chikoo:1}&#x5B;fruit]){\r\n    doMagic();\r\n}<\/pre>\n<p>This trick works well only if you have a small set of strings to compare.<\/p>\n<h2>2. !!<\/h2>\n<p>Here&#8217;s a shortest way to convert any JavaScript value to its truthy \/ falsy representation &#8211; just use <code>!!val<\/code>. Very useful if you want to check if a value is a present or not.<\/p>\n<p>For example,<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">if(!!document.addEventListener){\r\n    doMagic();\r\n}<\/pre>\n<p>But <code>!!<\/code> might confuse people with <code>!<\/code> operator which has a different meaning. So make a good judgement before you use <code>!!<\/code> everywhere.<\/p>\n<h2>3. Conditional function call<\/h2>\n<p>If a value is true, you want to call a function foo() otherwise you want to call bar(). You go for <code>if<\/code>, right?<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">if(param){\r\n    foo();\r\n}else{\r\n    bar();\r\n}<\/pre>\n<p>Here&#8217;s an alternative, short approach:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">param ? foo() : bar();<\/pre>\n<p>yay!<\/p>\n<h2>4. Chaining of function calls<\/h2>\n<p>You have three functions <code>one()<\/code>, <code>two()<\/code> and <code>three()<\/code>. You want to call these functions one after other, but only when a previous function returns a truthy value. For example, if all three functions returns a truthy value, then all will be called. But if the function <code>two()<\/code> returns false\/null then function <code>three()<\/code> won&#8217;t be called.<\/p>\n<p>So, you go for <code>if<\/code>, obviously.<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">if(one()){\r\n    if(two()){\r\n        three();\r\n    }\r\n}<\/pre>\n<p>But let&#8217;s rewrite with this one:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">one() &amp;&amp; two() &amp;&amp; three();<\/pre>\n<h2>5. IIFE<\/h2>\n<p><strong>IIFE<\/strong> is short for <strong>Immediately Invoked Function Expression<\/strong>. It means, you define a function and then you call it immediately. IIFE helped me in some usecases where I don&#8217;t want to create a new function but I needed the logic to be inside a function block.<\/p>\n<p>For example, lets say you are initializing variables and for one variable, the initial value needs to be calculated using some complex logic. If you don&#8217;t want to separate this calculation logic to a seperate function, but you still want to wrap it in it&#8217;s own block, you can IIFE. Like below:<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">function doMagic(){\r\n    var foo = 1,\r\n        bar = 2,\r\n        zoo = (function(){\r\n            \/\/ some complex stuff\r\n            \/\/ some more complex stuff\r\n            return stuff;\r\n        }()),\r\n        baz = 3;\r\n}<\/pre>\n<p>So, what do you think about these tricks? Do you think these are usefull or affect the code readability? Feel free to comment your thoughts.<\/p>\n<div class=\"attribution\">\n<table>\n<tbody>\n<tr>\n<td><span class=\"reference\">Reference: <\/span><\/td>\n<td><a href=\"http:\/\/veerasundar.com\/blog\/2014\/09\/five-nifty-javascript-tricks\/\">5 nifty JavaScript tricks that you may not know<\/a> from our <a href=\"http:\/\/www.webcodegeeks.com\/wcg\/\">WCG partner<\/a> Veera Sundar at the <a href=\"http:\/\/veerasundar.com\/blog\/\">Veera Sundar<\/a> blog.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Over the years, I have seen several JavaScript techniques that are particularly clever. Here&#8217;s a short list of 5 such techniques that I have been using again and again. I hope it inspires you too to rethink how you write certain piece of code. And, please note that some people may think clever coding impacts &hellip;<\/p>\n","protected":false},"author":6,"featured_media":920,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-1105","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>5 nifty JavaScript tricks that you may not know - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"Over the years, I have seen several JavaScript techniques that are particularly clever. Here&#039;s a short list of 5 such techniques that I have been using\" \/>\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\/5-nifty-javascript-tricks-that-you-may-not-know\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"5 nifty JavaScript tricks that you may not know - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"Over the years, I have seen several JavaScript techniques that are particularly clever. Here&#039;s a short list of 5 such techniques that I have been using\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/\" \/>\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=\"2014-10-17T12:26:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-10T13:00:14+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=\"Veera Sundar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Veera Sundar\" \/>\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\/5-nifty-javascript-tricks-that-you-may-not-know\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/\"},\"author\":{\"name\":\"Veera Sundar\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/0246febd1de76c75168a687d7abb14b9\"},\"headline\":\"5 nifty JavaScript tricks that you may not know\",\"datePublished\":\"2014-10-17T12:26:18+00:00\",\"dateModified\":\"2018-01-10T13:00:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/\"},\"wordCount\":518,\"commentCount\":12,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/#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\/5-nifty-javascript-tricks-that-you-may-not-know\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/\",\"name\":\"5 nifty JavaScript tricks that you may not know - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg\",\"datePublished\":\"2014-10-17T12:26:18+00:00\",\"dateModified\":\"2018-01-10T13:00:14+00:00\",\"description\":\"Over the years, I have seen several JavaScript techniques that are particularly clever. Here's a short list of 5 such techniques that I have been using\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/#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\/5-nifty-javascript-tricks-that-you-may-not-know\/#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\":\"5 nifty JavaScript tricks that you may not know\"}]},{\"@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\/0246febd1de76c75168a687d7abb14b9\",\"name\":\"Veera Sundar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/02fcdbdd31df95e9a89687c658f225572027173dac294346eba87cbef25bb5cf?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/02fcdbdd31df95e9a89687c658f225572027173dac294346eba87cbef25bb5cf?s=96&d=mm&r=g\",\"caption\":\"Veera Sundar\"},\"sameAs\":[\"http:\/\/veerasundar.com\/blog\/\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/veera-sundar\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"5 nifty JavaScript tricks that you may not know - Web Code Geeks - 2026","description":"Over the years, I have seen several JavaScript techniques that are particularly clever. Here's a short list of 5 such techniques that I have been using","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\/5-nifty-javascript-tricks-that-you-may-not-know\/","og_locale":"en_US","og_type":"article","og_title":"5 nifty JavaScript tricks that you may not know - Web Code Geeks - 2026","og_description":"Over the years, I have seen several JavaScript techniques that are particularly clever. Here's a short list of 5 such techniques that I have been using","og_url":"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_published_time":"2014-10-17T12:26:18+00:00","article_modified_time":"2018-01-10T13:00:14+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":"Veera Sundar","twitter_card":"summary_large_image","twitter_creator":"@webcodegeeks","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Veera Sundar","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/"},"author":{"name":"Veera Sundar","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/0246febd1de76c75168a687d7abb14b9"},"headline":"5 nifty JavaScript tricks that you may not know","datePublished":"2014-10-17T12:26:18+00:00","dateModified":"2018-01-10T13:00:14+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/"},"wordCount":518,"commentCount":12,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/#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\/5-nifty-javascript-tricks-that-you-may-not-know\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/","url":"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/","name":"5 nifty JavaScript tricks that you may not know - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/js-logo.jpg","datePublished":"2014-10-17T12:26:18+00:00","dateModified":"2018-01-10T13:00:14+00:00","description":"Over the years, I have seen several JavaScript techniques that are particularly clever. Here's a short list of 5 such techniques that I have been using","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/javascript\/5-nifty-javascript-tricks-that-you-may-not-know\/#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\/5-nifty-javascript-tricks-that-you-may-not-know\/#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":"5 nifty JavaScript tricks that you may not know"}]},{"@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\/0246febd1de76c75168a687d7abb14b9","name":"Veera Sundar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/02fcdbdd31df95e9a89687c658f225572027173dac294346eba87cbef25bb5cf?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/02fcdbdd31df95e9a89687c658f225572027173dac294346eba87cbef25bb5cf?s=96&d=mm&r=g","caption":"Veera Sundar"},"sameAs":["http:\/\/veerasundar.com\/blog\/"],"url":"https:\/\/www.webcodegeeks.com\/author\/veera-sundar\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/1105","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=1105"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/1105\/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=1105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=1105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=1105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}