{"id":78,"date":"2020-11-05T12:32:06","date_gmt":"2020-11-05T12:32:06","guid":{"rendered":"https:\/\/codeflarelimited.com\/blog\/?p=78"},"modified":"2021-05-31T05:42:14","modified_gmt":"2021-05-31T04:42:14","slug":"recursive-functions","status":"publish","type":"post","link":"https:\/\/codeflarelimited.com\/blog\/recursive-functions\/","title":{"rendered":"Recursive Functions"},"content":{"rendered":"\n<p>A recursive function is one which defines a problem in terms of itself.<\/p>\n\n\n\n<p>A recursive function calls itself directly or indirectly until it is stopped. If it is not stopped, then it will call itself forever &#8211; or maybe until your browser crashes!<\/p>\n\n\n\n<p>Recursive functions let you perform a unit of work multiple times. And while it is similar to a <strong><span class=\"has-inline-color has-accent-color\">for\/while loop<\/span><\/strong>, using a recursive solution affords a unique, faster and much more elegant approach to solving a problem.<\/p>\n\n\n\n<p>Let&#8217;s write a countdown function, shall we?<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Using Loop:<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">countDown = (num) =&gt; {\nfor(let i=num; i&gt;0; i--){\nconsole.log(i);\n}\n}\ncountDown(6) \/\/5,4,3,2,1<\/code><\/pre>\n\n\n\n<p>2. Using Recursion<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">countDown = (num) =&gt; {\nif(num === 0)\nreturn 0;\nconsole.log(num);\ncountDown(num - 1);\n}\n\ncountDown(6) \/\/5,4,3,2,1<\/code><\/pre>\n\n\n\n<p>A recursive function usually contains what is referred to as a &#8220;<strong><span class=\"has-inline-color has-accent-color\">base case.&#8221;<\/span><\/strong><\/p>\n\n\n\n<p>A <strong><span class=\"has-inline-color has-accent-color\">base case<\/span><\/strong> is a condition that checks and stops the recursion. It essentially prevents an infinite loop.<\/p>\n\n\n\n<p>In the above example, the snippet below:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">if(num === 0)\nreturn;<\/code><\/pre>\n\n\n\n<p>is the base case, a condition that checks our program.<\/p>\n\n\n\n<p><strong>More examples<\/strong> &#8230;<\/p>\n\n\n\n<p>Supposing we want to write a solution that performs a raise-to-power operation, eg., 2<sup>3<\/sup>.<\/p>\n\n\n\n<p>We can use the inbuilt Math function in Javascript like so:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">Math.pow(2,3)\n\/\/result is 8<\/code><\/pre>\n\n\n\n<p> We can also write a Loop solution as follows:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">pow = (a, b) =&gt; {\nlet result = 1;\nfor(let i=0; i&lt;b; i++){\nresult *=a;\n}\nreturn result;\n}\n\nalert(pow(2,3));\n\/\/result is 8\n <\/code><\/pre>\n\n\n\n<p>And then we can think in terms of <strong><span class=\"has-inline-color has-primary-color\">recursion<\/span><\/strong> by doing the following:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">pow = (a, b) =&gt; {\nif(n==1){\nreturn a;\n}else{\nreturn a * pow(a, b-1);\n}\n}\n\nalert(pow(2,3));\n\/\/result is 8<\/code><\/pre>\n\n\n\n<p>Task: Sum all numbers till the given one.<\/p>\n\n\n\n<p>E.g 5 = 1+2+3+4+5 = 15;<\/p>\n\n\n\n<p>Using <strong>recursion,<\/strong> we would do the following<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">sumAll = (n) =&gt; {\nif(n === 0){\nreturn 0;\n}else{\nreturn n += sumAll(n-1);\n}\n}\n\nalert(sumAll(5)) \/\/15<\/code><\/pre>\n\n\n\n<p>There you go. you can start using recursion for your automated programming tasks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A recursive function is one which defines a problem in terms of itself. A recursive function calls itself<\/p>\n","protected":false},"author":1,"featured_media":79,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[11],"tags":[12],"class_list":["post-78","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","tag-recursive-functions"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Recursive Functions<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codeflarelimited.com\/blog\/recursive-functions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Recursive Functions\" \/>\n<meta property=\"og:description\" content=\"A recursive function is one which defines a problem in terms of itself. A recursive function calls itself\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codeflarelimited.com\/blog\/recursive-functions\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/facebook.com\/codeflretech\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-05T12:32:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-31T04:42:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-05-at-13.12.42.png\" \/>\n\t<meta property=\"og:image:width\" content=\"988\" \/>\n\t<meta property=\"og:image:height\" content=\"660\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"codeflare\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codeflaretech\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/recursive-functions\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/recursive-functions\\\/\"},\"author\":{\"name\":\"codeflare\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/person\\\/7e65653d49add95629f8c1053c5cd76a\"},\"headline\":\"Recursive Functions\",\"datePublished\":\"2020-11-05T12:32:06+00:00\",\"dateModified\":\"2021-05-31T04:42:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/recursive-functions\\\/\"},\"wordCount\":220,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/recursive-functions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/Screenshot-2020-11-05-at-13.12.42.png\",\"keywords\":[\"recursive functions\"],\"articleSection\":[\"javascript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/recursive-functions\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/recursive-functions\\\/\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/recursive-functions\\\/\",\"name\":\"Recursive Functions\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/recursive-functions\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/recursive-functions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/Screenshot-2020-11-05-at-13.12.42.png\",\"datePublished\":\"2020-11-05T12:32:06+00:00\",\"dateModified\":\"2021-05-31T04:42:14+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/recursive-functions\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/recursive-functions\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/recursive-functions\\\/#primaryimage\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/Screenshot-2020-11-05-at-13.12.42.png\",\"contentUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/Screenshot-2020-11-05-at-13.12.42.png\",\"width\":988,\"height\":660,\"caption\":\"Using recursive functions in javascript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/recursive-functions\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"javascript\",\"item\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/javascript\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Recursive Functions\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\",\"name\":\"\",\"description\":\"Sustainable solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\",\"name\":\"Codeflare Limited\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/codeflare.png\",\"contentUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/codeflare.png\",\"width\":1040,\"height\":263,\"caption\":\"Codeflare Limited\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/person\\\/7e65653d49add95629f8c1053c5cd76a\",\"name\":\"codeflare\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"caption\":\"codeflare\"},\"description\":\"Latest tech news and coding tips.\",\"sameAs\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\",\"https:\\\/\\\/facebook.com\\\/codeflretech\",\"https:\\\/\\\/instagram.com\\\/codeflaretech\",\"https:\\\/\\\/x.com\\\/codeflaretech\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCuBLtiYqsajHdqw0uyt7Ofw?sub_confirmation=1\"],\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/author\\\/watcher\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Recursive Functions","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:\/\/codeflarelimited.com\/blog\/recursive-functions\/","og_locale":"en_US","og_type":"article","og_title":"Recursive Functions","og_description":"A recursive function is one which defines a problem in terms of itself. A recursive function calls itself","og_url":"https:\/\/codeflarelimited.com\/blog\/recursive-functions\/","article_author":"https:\/\/facebook.com\/codeflretech","article_published_time":"2020-11-05T12:32:06+00:00","article_modified_time":"2021-05-31T04:42:14+00:00","og_image":[{"width":988,"height":660,"url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-05-at-13.12.42.png","type":"image\/png"}],"author":"codeflare","twitter_card":"summary_large_image","twitter_creator":"@codeflaretech","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/codeflarelimited.com\/blog\/recursive-functions\/#article","isPartOf":{"@id":"https:\/\/codeflarelimited.com\/blog\/recursive-functions\/"},"author":{"name":"codeflare","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/person\/7e65653d49add95629f8c1053c5cd76a"},"headline":"Recursive Functions","datePublished":"2020-11-05T12:32:06+00:00","dateModified":"2021-05-31T04:42:14+00:00","mainEntityOfPage":{"@id":"https:\/\/codeflarelimited.com\/blog\/recursive-functions\/"},"wordCount":220,"commentCount":0,"publisher":{"@id":"https:\/\/codeflarelimited.com\/blog\/#organization"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/recursive-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-05-at-13.12.42.png","keywords":["recursive functions"],"articleSection":["javascript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codeflarelimited.com\/blog\/recursive-functions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codeflarelimited.com\/blog\/recursive-functions\/","url":"https:\/\/codeflarelimited.com\/blog\/recursive-functions\/","name":"Recursive Functions","isPartOf":{"@id":"https:\/\/codeflarelimited.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codeflarelimited.com\/blog\/recursive-functions\/#primaryimage"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/recursive-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-05-at-13.12.42.png","datePublished":"2020-11-05T12:32:06+00:00","dateModified":"2021-05-31T04:42:14+00:00","breadcrumb":{"@id":"https:\/\/codeflarelimited.com\/blog\/recursive-functions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codeflarelimited.com\/blog\/recursive-functions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeflarelimited.com\/blog\/recursive-functions\/#primaryimage","url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-05-at-13.12.42.png","contentUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-05-at-13.12.42.png","width":988,"height":660,"caption":"Using recursive functions in javascript"},{"@type":"BreadcrumbList","@id":"https:\/\/codeflarelimited.com\/blog\/recursive-functions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codeflarelimited.com\/blog\/"},{"@type":"ListItem","position":2,"name":"javascript","item":"https:\/\/codeflarelimited.com\/blog\/javascript\/"},{"@type":"ListItem","position":3,"name":"Recursive Functions"}]},{"@type":"WebSite","@id":"https:\/\/codeflarelimited.com\/blog\/#website","url":"https:\/\/codeflarelimited.com\/blog\/","name":"","description":"Sustainable solutions","publisher":{"@id":"https:\/\/codeflarelimited.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codeflarelimited.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codeflarelimited.com\/blog\/#organization","name":"Codeflare Limited","url":"https:\/\/codeflarelimited.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/codeflare.png","contentUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/codeflare.png","width":1040,"height":263,"caption":"Codeflare Limited"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/person\/7e65653d49add95629f8c1053c5cd76a","name":"codeflare","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","caption":"codeflare"},"description":"Latest tech news and coding tips.","sameAs":["https:\/\/codeflarelimited.com\/blog","https:\/\/facebook.com\/codeflretech","https:\/\/instagram.com\/codeflaretech","https:\/\/x.com\/codeflaretech","https:\/\/www.youtube.com\/channel\/UCuBLtiYqsajHdqw0uyt7Ofw?sub_confirmation=1"],"url":"https:\/\/codeflarelimited.com\/blog\/author\/watcher\/"}]}},"jetpack_featured_media_url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/Screenshot-2020-11-05-at-13.12.42.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/comments?post=78"}],"version-history":[{"count":2,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/78\/revisions"}],"predecessor-version":[{"id":667,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/78\/revisions\/667"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/media\/79"}],"wp:attachment":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/media?parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/categories?post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/tags?post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}