{"id":428,"date":"2018-10-29T19:19:51","date_gmt":"2018-10-29T19:19:51","guid":{"rendered":"http:\/\/www.projectimmerse.com\/?p=428"},"modified":"2020-06-17T07:19:55","modified_gmt":"2020-06-17T07:19:55","slug":"data-structures-algorithms-ii","status":"publish","type":"post","link":"https:\/\/www.projectimmerse.com\/blog\/data-structures-algorithms-ii\/","title":{"rendered":"Data Structures &#038; Algorithms II"},"content":{"rendered":"<p>This is part || of Data Structures &#038; Algorithms using Javascript. I would like to give credit to <a href=\"https:\/\/www.youtube.com\/watch?v=t2CEgPsws3U\" title=\"\">freeCodeCamp.org<\/a> for their series of videos covering this topic. <\/p>\n<p>In part I we started off with a simply defining a few data types &#8211; an array and a string for storing data in memory. Then we used a &#8220;for-loop&#8221; to access and manipulate our data structures. Finally we came up with a sequence of steps to test whether a word was a palindrome or not. In part II now, were going to wrap up all that code into what we call a function object. <\/p>\n<p>Functions are a powerful data structure encapsulating your algorithms. Functions also are a good example of &#8220;<strong>DRY<\/strong>&#8221; &#8211; Don&#8217;t Repeat Yourself.<\/p>\n<p><!--more--><\/p>\n<blockquote><p>\nIn software engineering, don&#8217;t repeat yourself is a principle of software development aimed at reducing repetition of software patterns, replacing it with abstractions or using data normalization to avoid redundancy.\n<\/p><\/blockquote>\n<p>On to the function itself:<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n\r\n\/\/ Creates a Stack\r\nvar Stack = function() {\r\n\r\n  this.count = 0;\r\n  this.storage = {};\r\n\r\n  \/\/ Adds a value onto the end of the Stack\r\n  this.push = function(value) {\r\n    this.storage&#x5B;this.count] = value;\r\n    this.count++;\r\n  }\r\n\r\n  \/\/ Removes and returns the value at the end of the stack\r\n  this.pop = function() {\r\n    if (this.count === 0) {\r\n      return undefined;\r\n    }\r\n\r\n    this.count--;\r\n    var result = this.storage&#x5B;this.count];\r\n    delete this.storage&#x5B;this.count];\r\n    return result;\r\n\r\n  }\r\n\r\n  this.size = function() {\r\n    return this.count;\r\n  }\r\n\r\n  \/\/ Returns the value at the end of the Stack\r\n  this.peek = function(value) {\r\n    return this.storage&#x5B;this.count-1];\r\n  }\r\n\r\n}\r\n\r\nvar myStack = new Stack();\r\n\r\nmyStack.push(1);\r\nmyStack.push(2);\r\nconsole.log(myStack.peek());\r\nconsole.log(myStack.pop());\r\nconsole.log(myStack.peek());\r\nconsole.log(&quot;freeCodeCamp&quot;);\r\nconsole.log(myStack.size());\r\nconsole.log(myStack.peek());\r\nconsole.log(myStack.pop());\r\nconsole.log(myStack.peek());\r\n\r\n<\/pre>\n<p>Straight to explaining this algorithm. <\/p>\n<h2>Naming an object<\/h2>\n<p>If you&#8217;re paying close attention &#8211; notice we are naming the &#8220;Stack&#8221; function with a capital &#8220;S&#8221;. Now, we could have used a lowercased version and just called it &#8220;stack&#8221; but in the javascript world, we capitalize the word to denote an object we are intending to extend and create from. In old school javascript lingo, this is known as a function constructor. Nowadays we have ECMAScript 6, a huge shift away from using function constructors &#8211; instead we use classes, more on this on a later post. <\/p>\n<h2>Function variables and scope<\/h2>\n<p>We only really have two local variables defined here. In terms of scope, these variables can only be seen by the operations within the scope of the function. The &#8216;this&#8217; keyword is an important concept in javascript and I&#8217;ll admit, this is one of the more difficult concepts for me to understand. The &#8216;this&#8217; keyword is simply referring to the object itself we defined as &#8220;Stack&#8221;. So were basically saying something like this. <\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n\r\nStack.count = 0;\r\nStack.storage = {};\r\n\r\n<\/pre>\n<p>We wouldn&#8217;t really do this though so we use &#8216;this&#8217;:<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n\r\nthis.count = 0;\r\nthis.storage = {};\r\n\r\n<\/pre>\n<p>This is a common pattern in any language &#8211; defining your variables, your constants, all the elements that make up a program or an object. For instance of a physics problem, you might want to declare all the elements that make up an atom first &#8211; a neutron, a proton, and an electron. And then, if there are any constants measured in time &#8211; we can define those as constants. Following these declarations are a sequence of operations we can use to manipulate the data and achieve a desired result.<\/p>\n<p>We have a list of methods we are attaching to the &#8220;Stack&#8221; object, lets list them down:<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n\r\nthis.push();\r\nthis.pop();\r\nthis.size();\r\nthis.peek();\r\n\r\n<\/pre>\n<h2>The push method<\/h2>\n<p>Breaking it down, we are grabbing the value and simply adding it into our storage object we had declared earlier. We also keep a current count by using the increment operator &#8211; &#8220;++&#8221;<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n\r\nthis.storage&#x5B;this.count] = value;\r\nthis.count++;\r\n\r\n<\/pre>\n<h2>The pop method<\/h2>\n<p>The pop method here is a little different compared to the other methods defined in this function constructor. The pop method actually keeps track, or provides a check to see if the current storage object is empty or &#8220;0&#8221;. <\/p>\n<p>Let&#8217;s jot it down again for clarity sake:<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n\r\n  this.pop = function() {\r\n    if (this.count === 0) {\r\n      return undefined;\r\n    }\r\n\r\n    this.count--;\r\n    var result = this.storage&#x5B;this.count];\r\n    delete this.storage&#x5B;this.count];\r\n    return result;\r\n\r\n  }\r\n\r\n<\/pre>\n<p>In the code snippet above we aren&#8217;t actually passing any values to the pop method (or function) &#8211; we are implementing a sequence of steps here. First we decrement the current count variable by using the &#8220;&#8211;&#8221; operator. From the LIFO concept, we know that we are always referring to the last element in the stack.<\/p>\n<p>Breaking it down even more&#8230;<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n\r\n    var result = this.storage&#x5B;this.count];\r\n    delete this.storage&#x5B;this.count];\r\n\r\n<\/pre>\n<p>These two steps here is where the meat of it is &#8211; we want to save this.storage[this.count] into the variable first and then delete it. We can then capture the result and return it for inspection and further debugging.<\/p>\n<p>Alright almost done &#8211; we&#8217;ll cover the last two methods in one shot &#8211; the size and peek methods. <\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n\r\n  this.size = function() {\r\n    return this.count;\r\n  }\r\n\r\n  \/\/ Returns the value at the end of the Stack\r\n  this.peek = function(value) {\r\n    return this.storage&#x5B;this.count-1];\r\n  }\r\n\r\n<\/pre>\n<p>The size method is pretty straightforward &#8211; we are capturing the current size, or, the number of elements in the storage object.<\/p>\n<p>Finally, the peek method does exactly what it says &#8211; we are interested in the last element in the stack, so the peek method allows us to eyeball that last element, if any.<\/p>\n<h2>Instantiating an object<\/h2>\n<p>In javascript and with most programming languages &#8211; the &#8216;new&#8217; keyword is used to indicate that we are creating a new object. <\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n\r\nvar myStack = new Stack();\r\n\r\n&#x5B;\/javacript]\r\n\r\nOk finally...\r\n\r\nWe have a working function constructor, we can start using it!\r\n\r\n&#x5B;javascript]\r\n\r\nmyStack.push(1);\r\nmyStack.push(2);\r\nconsole.log(myStack.peek());\r\nconsole.log(myStack.pop());\r\n\r\n<\/pre>\n<p>We are simply adding elements to the storage object &#8211; 1 and 2. <\/p>\n<p>We should get the following result when we run our program:<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n\r\n$ node stackfunction.js\r\n2\r\n2\r\n<\/pre>\n<p>Now that we&#8217;ve exercised our programming muscles a bit &#8211; we can use this as a fundamental reference point for creating other function constructors. Stay tuned for the next topic &#8211; &#8220;Sets&#8221;. I&#8217;m pretty excited.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is part || of Data Structures &#038; Algorithms using Javascript. I would like to give credit to freeCodeCamp.org for their series of videos covering this topic. In part I we started off with a simply defining a few data types &#8211; an array and a string for storing data in memory. Then we used &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.projectimmerse.com\/blog\/data-structures-algorithms-ii\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Data Structures &#038; Algorithms II&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1152,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-428","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Data Structures &amp; Algorithms II - Project Immerse<\/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:\/\/www.projectimmerse.com\/blog\/data-structures-algorithms-ii\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Data Structures &amp; Algorithms II - Project Immerse\" \/>\n<meta property=\"og:description\" content=\"This is part || of Data Structures &#038; Algorithms using Javascript. I would like to give credit to freeCodeCamp.org for their series of videos covering this topic. In part I we started off with a simply defining a few data types &#8211; an array and a string for storing data in memory. Then we used &hellip; Continue reading &quot;Data Structures &#038; Algorithms II&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.projectimmerse.com\/blog\/data-structures-algorithms-ii\/\" \/>\n<meta property=\"og:site_name\" content=\"Project Immerse\" \/>\n<meta property=\"article:published_time\" content=\"2018-10-29T19:19:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-06-17T07:19:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/10\/data-structures-and-algorithms-2-javascript.png\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"750\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"projectimmerse\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"projectimmerse\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/data-structures-algorithms-ii\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/data-structures-algorithms-ii\\\/\"},\"author\":{\"name\":\"projectimmerse\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#\\\/schema\\\/person\\\/c53f2864be524ee6fa08a7e4800dd1e5\"},\"headline\":\"Data Structures &#038; Algorithms II\",\"datePublished\":\"2018-10-29T19:19:51+00:00\",\"dateModified\":\"2020-06-17T07:19:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/data-structures-algorithms-ii\\\/\"},\"wordCount\":1067,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/data-structures-algorithms-ii\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/data-structures-and-algorithms-2-javascript.png\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/data-structures-algorithms-ii\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/data-structures-algorithms-ii\\\/\",\"url\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/data-structures-algorithms-ii\\\/\",\"name\":\"Data Structures & Algorithms II - Project Immerse\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/data-structures-algorithms-ii\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/data-structures-algorithms-ii\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/data-structures-and-algorithms-2-javascript.png\",\"datePublished\":\"2018-10-29T19:19:51+00:00\",\"dateModified\":\"2020-06-17T07:19:55+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#\\\/schema\\\/person\\\/c53f2864be524ee6fa08a7e4800dd1e5\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/data-structures-algorithms-ii\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/data-structures-algorithms-ii\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/data-structures-algorithms-ii\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/data-structures-and-algorithms-2-javascript.png\",\"contentUrl\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/10\\\/data-structures-and-algorithms-2-javascript.png\",\"width\":750,\"height\":750,\"caption\":\"Data Structures & Algorithms II\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/data-structures-algorithms-ii\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Data Structures &#038; Algorithms II\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/\",\"name\":\"Project Immerse\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/#\\\/schema\\\/person\\\/c53f2864be524ee6fa08a7e4800dd1e5\",\"name\":\"projectimmerse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d06955033d6227bfdcf30014e457e4334f7deeb73907de49b65ec2484921931?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d06955033d6227bfdcf30014e457e4334f7deeb73907de49b65ec2484921931?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4d06955033d6227bfdcf30014e457e4334f7deeb73907de49b65ec2484921931?s=96&d=mm&r=g\",\"caption\":\"projectimmerse\"},\"url\":\"https:\\\/\\\/www.projectimmerse.com\\\/blog\\\/author\\\/projectimmerse\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Data Structures & Algorithms II - Project Immerse","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.projectimmerse.com\/blog\/data-structures-algorithms-ii\/","og_locale":"en_US","og_type":"article","og_title":"Data Structures & Algorithms II - Project Immerse","og_description":"This is part || of Data Structures &#038; Algorithms using Javascript. I would like to give credit to freeCodeCamp.org for their series of videos covering this topic. In part I we started off with a simply defining a few data types &#8211; an array and a string for storing data in memory. Then we used &hellip; Continue reading \"Data Structures &#038; Algorithms II\"","og_url":"https:\/\/www.projectimmerse.com\/blog\/data-structures-algorithms-ii\/","og_site_name":"Project Immerse","article_published_time":"2018-10-29T19:19:51+00:00","article_modified_time":"2020-06-17T07:19:55+00:00","og_image":[{"width":750,"height":750,"url":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/10\/data-structures-and-algorithms-2-javascript.png","type":"image\/png"}],"author":"projectimmerse","twitter_card":"summary_large_image","twitter_misc":{"Written by":"projectimmerse","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.projectimmerse.com\/blog\/data-structures-algorithms-ii\/#article","isPartOf":{"@id":"https:\/\/www.projectimmerse.com\/blog\/data-structures-algorithms-ii\/"},"author":{"name":"projectimmerse","@id":"https:\/\/www.projectimmerse.com\/blog\/#\/schema\/person\/c53f2864be524ee6fa08a7e4800dd1e5"},"headline":"Data Structures &#038; Algorithms II","datePublished":"2018-10-29T19:19:51+00:00","dateModified":"2020-06-17T07:19:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.projectimmerse.com\/blog\/data-structures-algorithms-ii\/"},"wordCount":1067,"commentCount":0,"image":{"@id":"https:\/\/www.projectimmerse.com\/blog\/data-structures-algorithms-ii\/#primaryimage"},"thumbnailUrl":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/10\/data-structures-and-algorithms-2-javascript.png","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.projectimmerse.com\/blog\/data-structures-algorithms-ii\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.projectimmerse.com\/blog\/data-structures-algorithms-ii\/","url":"https:\/\/www.projectimmerse.com\/blog\/data-structures-algorithms-ii\/","name":"Data Structures & Algorithms II - Project Immerse","isPartOf":{"@id":"https:\/\/www.projectimmerse.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.projectimmerse.com\/blog\/data-structures-algorithms-ii\/#primaryimage"},"image":{"@id":"https:\/\/www.projectimmerse.com\/blog\/data-structures-algorithms-ii\/#primaryimage"},"thumbnailUrl":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/10\/data-structures-and-algorithms-2-javascript.png","datePublished":"2018-10-29T19:19:51+00:00","dateModified":"2020-06-17T07:19:55+00:00","author":{"@id":"https:\/\/www.projectimmerse.com\/blog\/#\/schema\/person\/c53f2864be524ee6fa08a7e4800dd1e5"},"breadcrumb":{"@id":"https:\/\/www.projectimmerse.com\/blog\/data-structures-algorithms-ii\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.projectimmerse.com\/blog\/data-structures-algorithms-ii\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.projectimmerse.com\/blog\/data-structures-algorithms-ii\/#primaryimage","url":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/10\/data-structures-and-algorithms-2-javascript.png","contentUrl":"https:\/\/www.projectimmerse.com\/blog\/wp-content\/uploads\/2018\/10\/data-structures-and-algorithms-2-javascript.png","width":750,"height":750,"caption":"Data Structures & Algorithms II"},{"@type":"BreadcrumbList","@id":"https:\/\/www.projectimmerse.com\/blog\/data-structures-algorithms-ii\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.projectimmerse.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Data Structures &#038; Algorithms II"}]},{"@type":"WebSite","@id":"https:\/\/www.projectimmerse.com\/blog\/#website","url":"https:\/\/www.projectimmerse.com\/blog\/","name":"Project Immerse","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.projectimmerse.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.projectimmerse.com\/blog\/#\/schema\/person\/c53f2864be524ee6fa08a7e4800dd1e5","name":"projectimmerse","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4d06955033d6227bfdcf30014e457e4334f7deeb73907de49b65ec2484921931?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4d06955033d6227bfdcf30014e457e4334f7deeb73907de49b65ec2484921931?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4d06955033d6227bfdcf30014e457e4334f7deeb73907de49b65ec2484921931?s=96&d=mm&r=g","caption":"projectimmerse"},"url":"https:\/\/www.projectimmerse.com\/blog\/author\/projectimmerse\/"}]}},"_links":{"self":[{"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/posts\/428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/comments?post=428"}],"version-history":[{"count":6,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/posts\/428\/revisions"}],"predecessor-version":[{"id":440,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/posts\/428\/revisions\/440"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/media\/1152"}],"wp:attachment":[{"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/media?parent=428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/categories?post=428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.projectimmerse.com\/blog\/wp-json\/wp\/v2\/tags?post=428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}