{"id":29593,"date":"2022-05-19T13:26:39","date_gmt":"2022-05-19T07:56:39","guid":{"rendered":"https:\/\/tutorial.eyehunts.com\/?p=29593"},"modified":"2023-11-29T18:10:55","modified_gmt":"2023-11-29T12:40:55","slug":"javascript-private-variable-basics","status":"publish","type":"post","link":"https:\/\/tutorial.eyehunts.com\/js\/javascript-private-variable-basics\/","title":{"rendered":"JavaScript private variable | Basics"},"content":{"rendered":"\n<p>The private variable is <strong>only visible to the current class<\/strong> and not accessible in the global scope or to any of its subclasses. ES6 standard does not offer a new way of defining private variables in JavaScript.<\/p>\n\n\n\n<p>Alternatively, we may also use the \u201c<a href=\"https:\/\/tutorial.eyehunts.com\/js\/this-keyword-in-javascript-basic-code\/\">this<\/a>\u201d keyword to make method (function) calls to stick to the main method itself which thus makes the variables private.<\/p>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">JavaScript private variable<\/h2>\n\n\n\n<p>Simple example code.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;body&gt;\n  &lt;script&gt;\n\n   function Foo(b)\n   {\n     var bar = b;\n\n     this.setBar = function(x){\n      bar = x;\n    }\n\n    this.alertBar = function(){\n      console.log(bar);\n    }\n  }\n\n  var test = new Foo(10);\n  test.alertBar()\n\n  console.log(test.bar); \/\/undefined because private\n&lt;\/script&gt;\n\n&lt;\/body&gt;\n&lt;\/html&gt; <\/code><\/pre>\n\n\n\n<p><strong>Output<\/strong>:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"202\" height=\"90\" src=\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/05\/JavaScript-private-variable.jpg?resize=202%2C90&#038;ssl=1\" alt=\"JavaScript private variable\" class=\"wp-image-29659\"\/><\/figure><\/div>\n\n\n<p>Another modern approach to achieving privacy in JavaScript is through the use of ES6 classes and symbols. Symbols are unique and can be used as property keys to make it harder for external code to access certain properties, but it doesn&#8217;t make them completely private.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>const _count = Symbol('count');\n\nclass Counter {\n  constructor() {\n    this&#91;_count] = 0;\n  }\n\n  increment() {\n    this&#91;_count]++;\n  }\n\n  getCount() {\n    return this&#91;_count];\n  }\n}\n\nconst counter = new Counter();\n\nconsole.log(counter.getCount()); \/\/ 0\ncounter.increment();\nconsole.log(counter.getCount()); \/\/ 1\n\n<\/code><\/pre>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>How to set javascript private variables in the constructor?<\/strong><\/h3>\n\n\n\n<p><strong>Answer<\/strong>: You have to put all functions that need to access the private variable inside the constructor:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function Foo(bar)\n{\n  \/\/bar is inside a closure now, only these functions can access it\n  this.setBar = function() {bar = 5;}\n  this.getBar = function() {return bar;}\n  \/\/Other functions\n}\n\nvar myFoo = new Foo(5);\nmyFoo.bar;      \/\/Undefined, cannot access variable closure\nmyFoo.getBar(); \/\/Works, returns 5\n<\/code><\/pre>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Do comment if you have any doubts or suggestions on this JS variable topic.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong>Note:<\/strong>&nbsp;The<strong>&nbsp;All JS Examples codes&nbsp;<\/strong>are&nbsp;tested on the Firefox browser and the Chrome browser.<\/p><p>OS:&nbsp;<strong>Windows 10<\/strong><\/p><p>Code: HTML 5 Version<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>The private variable is only visible to the current class and not accessible in the global scope or to any of its subclasses. ES6 standard does not offer a new way of defining private variables in JavaScript. Alternatively, we may also use the \u201cthis\u201d keyword to make method (function) calls to stick to the main&hellip;&nbsp;<a href=\"https:\/\/tutorial.eyehunts.com\/js\/javascript-private-variable-basics\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">JavaScript private variable | Basics<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[69],"tags":[403,129],"post_series":[],"class_list":["post-29593","post","type-post","status-publish","format-standard","hentry","category-js","tag-js-private","tag-js-variable"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.1.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JavaScript private variable | Basics<\/title>\n<meta name=\"description\" content=\"The private variable is only visible to the current class and not accessible in the global scope or to any of its subclasses. ES6 standard\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/tutorial.eyehunts.com\/js\/javascript-private-variable-basics\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript private variable | Basics\" \/>\n<meta property=\"og:description\" content=\"The private variable is only visible to the current class and not accessible in the global scope or to any of its subclasses. ES6 standard\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tutorial.eyehunts.com\/js\/javascript-private-variable-basics\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorial\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-19T07:56:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-29T12:40:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/05\/JavaScript-private-variable.jpg\" \/>\n<meta name=\"author\" content=\"Rohit\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rohit\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/js\/javascript-private-variable-basics\/\",\"url\":\"https:\/\/tutorial.eyehunts.com\/js\/javascript-private-variable-basics\/\",\"name\":\"JavaScript private variable | Basics\",\"isPartOf\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/js\/javascript-private-variable-basics\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/js\/javascript-private-variable-basics\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/05\/JavaScript-private-variable.jpg\",\"datePublished\":\"2022-05-19T07:56:39+00:00\",\"dateModified\":\"2023-11-29T12:40:55+00:00\",\"author\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1\"},\"description\":\"The private variable is only visible to the current class and not accessible in the global scope or to any of its subclasses. ES6 standard\",\"breadcrumb\":{\"@id\":\"https:\/\/tutorial.eyehunts.com\/js\/javascript-private-variable-basics\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tutorial.eyehunts.com\/js\/javascript-private-variable-basics\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/js\/javascript-private-variable-basics\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/05\/JavaScript-private-variable.jpg?fit=202%2C90&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/05\/JavaScript-private-variable.jpg?fit=202%2C90&ssl=1\",\"width\":202,\"height\":90},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/js\/javascript-private-variable-basics\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tutorial.eyehunts.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript private variable | Basics\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/#website\",\"url\":\"https:\/\/tutorial.eyehunts.com\/\",\"name\":\"Tutorial\",\"description\":\"By EyeHunts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/tutorial.eyehunts.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1\",\"name\":\"Rohit\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777979855\",\"contentUrl\":\"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777979855\",\"caption\":\"Rohit\"},\"description\":\"Degree in Computer Science and Engineer: App Developer and has multiple Programming languages experience. Enthusiasm for technology &amp; like learning technical.\",\"url\":\"https:\/\/tutorial.eyehunts.com\/author\/rohit\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JavaScript private variable | Basics","description":"The private variable is only visible to the current class and not accessible in the global scope or to any of its subclasses. ES6 standard","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:\/\/tutorial.eyehunts.com\/js\/javascript-private-variable-basics\/","og_locale":"en_US","og_type":"article","og_title":"JavaScript private variable | Basics","og_description":"The private variable is only visible to the current class and not accessible in the global scope or to any of its subclasses. ES6 standard","og_url":"https:\/\/tutorial.eyehunts.com\/js\/javascript-private-variable-basics\/","og_site_name":"Tutorial","article_published_time":"2022-05-19T07:56:39+00:00","article_modified_time":"2023-11-29T12:40:55+00:00","og_image":[{"url":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/05\/JavaScript-private-variable.jpg","type":"","width":"","height":""}],"author":"Rohit","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rohit","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/tutorial.eyehunts.com\/js\/javascript-private-variable-basics\/","url":"https:\/\/tutorial.eyehunts.com\/js\/javascript-private-variable-basics\/","name":"JavaScript private variable | Basics","isPartOf":{"@id":"https:\/\/tutorial.eyehunts.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tutorial.eyehunts.com\/js\/javascript-private-variable-basics\/#primaryimage"},"image":{"@id":"https:\/\/tutorial.eyehunts.com\/js\/javascript-private-variable-basics\/#primaryimage"},"thumbnailUrl":"https:\/\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/05\/JavaScript-private-variable.jpg","datePublished":"2022-05-19T07:56:39+00:00","dateModified":"2023-11-29T12:40:55+00:00","author":{"@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1"},"description":"The private variable is only visible to the current class and not accessible in the global scope or to any of its subclasses. ES6 standard","breadcrumb":{"@id":"https:\/\/tutorial.eyehunts.com\/js\/javascript-private-variable-basics\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tutorial.eyehunts.com\/js\/javascript-private-variable-basics\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorial.eyehunts.com\/js\/javascript-private-variable-basics\/#primaryimage","url":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/05\/JavaScript-private-variable.jpg?fit=202%2C90&ssl=1","contentUrl":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/05\/JavaScript-private-variable.jpg?fit=202%2C90&ssl=1","width":202,"height":90},{"@type":"BreadcrumbList","@id":"https:\/\/tutorial.eyehunts.com\/js\/javascript-private-variable-basics\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tutorial.eyehunts.com\/"},{"@type":"ListItem","position":2,"name":"JavaScript private variable | Basics"}]},{"@type":"WebSite","@id":"https:\/\/tutorial.eyehunts.com\/#website","url":"https:\/\/tutorial.eyehunts.com\/","name":"Tutorial","description":"By EyeHunts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tutorial.eyehunts.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/69ca2cb8c13fdce0ee5b39d6175119b1","name":"Rohit","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorial.eyehunts.com\/#\/schema\/person\/image\/","url":"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777979855","contentUrl":"https:\/\/tutorial.eyehunts.com\/wp-content\/litespeed\/avatar\/2b27529b86d6dfb5336897e07c93a827.jpg?ver=1777979855","caption":"Rohit"},"description":"Degree in Computer Science and Engineer: App Developer and has multiple Programming languages experience. Enthusiasm for technology &amp; like learning technical.","url":"https:\/\/tutorial.eyehunts.com\/author\/rohit\/"}]}},"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":29966,"url":"https:\/\/tutorial.eyehunts.com\/js\/use-of-closure-in-javascript-basics\/","url_meta":{"origin":29593,"position":0},"title":"Use of closure in JavaScript | Basics","author":"Rohit","date":"June 8, 2022","format":false,"excerpt":"The advantage of closure in JavaScript is that it allows you to bind a variable to an execution context. JavaScript closures are defined as inner functions and are used to access variables and parameters of the outer function even after the outer function has returned. var closedIn = {}; var\u2026","rel":"","context":"In &quot;JavaScript&quot;","block_context":{"text":"JavaScript","link":"https:\/\/tutorial.eyehunts.com\/category\/js\/"},"img":{"alt_text":"Use of closure in JavaScript","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/06\/Use-of-closure-in-JavaScript.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":29884,"url":"https:\/\/tutorial.eyehunts.com\/js\/javascript-closures-basic-code\/","url_meta":{"origin":29593,"position":1},"title":"JavaScript closures | Basic code","author":"Rohit","date":"May 30, 2022","format":false,"excerpt":"JavaScript closure gives you access to an outer function's scope from an inner function. Closures are frequently used in JavaScript for object data privacy, in event handlers and callback functions, and in partial applications, currying, and other functional programming patterns. function init() { var name = 'Mozilla'; \/\/ name is\u2026","rel":"","context":"In &quot;JavaScript&quot;","block_context":{"text":"JavaScript","link":"https:\/\/tutorial.eyehunts.com\/category\/js\/"},"img":{"alt_text":"JavaScript closures","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/05\/JavaScript-closures.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":11491,"url":"https:\/\/tutorial.eyehunts.com\/js\/scope-of-variables-in-javascript-simple-example-code\/","url_meta":{"origin":29593,"position":2},"title":"Scope of variables in JavaScript | Simple example code","author":"Rohit","date":"March 1, 2021","format":false,"excerpt":"Scope of variables in JavaScript only has two types Global Variables and Local Variables. Note: In JavaScript, objects and functions are also variables. Scope of variables in JavaScript and Examples Let's see HTML example code for both type of scope and understand the use and different of it. Global Scope\u2026","rel":"","context":"In &quot;JavaScript&quot;","block_context":{"text":"JavaScript","link":"https:\/\/tutorial.eyehunts.com\/category\/js\/"},"img":{"alt_text":"Global Scope of variables in JavaScript","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/03\/Global-Scope-of-variables-in-JavaScript.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":29595,"url":"https:\/\/tutorial.eyehunts.com\/js\/javascript-private-constructor-example-code\/","url_meta":{"origin":29593,"position":3},"title":"JavaScript private constructor | Example code","author":"Rohit","date":"May 18, 2022","format":false,"excerpt":"JavaScript private constructor means Changing the scope of a constructor to private removes our ability to use the new keyword. class User { public name: string; private constructor (name: string) { this.name = name; } const user: User = new User('ABC'); \/\/ error JavaScript private constructor A simple example code\u2026","rel":"","context":"In &quot;JavaScript&quot;","block_context":{"text":"JavaScript","link":"https:\/\/tutorial.eyehunts.com\/category\/js\/"},"img":{"alt_text":"JavaScript private constructor","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2022\/05\/JavaScript-private-constructor.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":29962,"url":"https:\/\/tutorial.eyehunts.com\/js\/javascript-closure-interview-questions\/","url_meta":{"origin":29593,"position":4},"title":"JavaScript closure interview questions","author":"Rohit","date":"June 21, 2023","format":false,"excerpt":"JavaScript closure interview questions typically revolve around understanding the concept of closures, their applications, and potential use cases. Here are some common closure-related interview questions you may encounter: JavaScript closure interview questions answer Here are some common interview questions related to JavaScript closures: 1. What is a closure in JavaScript?\u2026","rel":"","context":"In &quot;JavaScript&quot;","block_context":{"text":"JavaScript","link":"https:\/\/tutorial.eyehunts.com\/category\/js\/"},"img":{"alt_text":"JavaScript closure interview questions","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2023\/06\/JavaScript-closure-interview-questions-1.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":12016,"url":"https:\/\/tutorial.eyehunts.com\/js\/window-variable-javascript-declare-global-variables-inside-a-function\/","url_meta":{"origin":29593,"position":5},"title":"Window Variable JavaScript | Declare global variables inside a function","author":"Rohit","date":"March 1, 2021","format":false,"excerpt":"Window Variable means that the variable is being declared at the global scope In JavaScript. Window Variable is used to declare JavaScript global variables inside the function. However, it's not recommended to create or declarer Global variables generally and it should be avoided. A better way to define variables within\u2026","rel":"","context":"In &quot;JavaScript&quot;","block_context":{"text":"JavaScript","link":"https:\/\/tutorial.eyehunts.com\/category\/js\/"},"img":{"alt_text":"Declare global Window Variable JavaScript inside a function","src":"https:\/\/i0.wp.com\/tutorial.eyehunts.com\/wp-content\/uploads\/2021\/03\/Declare-global-Window-Variable-JavaScript-inside-a-function.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/29593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/comments?post=29593"}],"version-history":[{"count":1,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/29593\/revisions"}],"predecessor-version":[{"id":42221,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/posts\/29593\/revisions\/42221"}],"wp:attachment":[{"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/media?parent=29593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/categories?post=29593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/tags?post=29593"},{"taxonomy":"post_series","embeddable":true,"href":"https:\/\/tutorial.eyehunts.com\/wp-json\/wp\/v2\/post_series?post=29593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}