{"id":5489,"date":"2020-03-30T12:10:36","date_gmt":"2020-03-30T06:40:36","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=5489"},"modified":"2026-11-14T12:44:16","modified_gmt":"2026-11-14T07:14:16","slug":"what-is-a-proxy-in-javascript","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/what-is-a-proxy-in-javascript\/","title":{"rendered":"What is a Proxy in JavaScript?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong><strong>Post Date:<\/strong><\/strong> March 30, 2020<strong><br><strong>Last Updated:<\/strong> <\/strong>November 14, 2026<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">JavaScript Proxy is a powerful feature that allows developers to customize the behaviour of objects. It acts as an intermediary between an object and its operations, allowing you to intercept and control actions such as reading properties, modifying values, checking properties, and calling functions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A Proxy object wraps an existing object and uses a handler to define custom behaviour for different operations. These custom behaviours are implemented using special methods called <em>traps<\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Reference\/Global_Objects\/Proxy\" target=\"_blank\" rel=\"noopener\">JavaScript Proxies<\/a> are useful for data validation, access control, logging, property manipulation, and creating reactive applications.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this article, we will explore what a JavaScript Proxy is, its syntax, how it works, and practical examples to understand its usage.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is a Proxy in JavaScript?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">A Proxy in JavaScript is an object that allows you to define custom behaviour for fundamental operations performed on another object.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It consists of two main components:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Target:<\/strong> The original object that the Proxy wraps.<\/li>\n\n\n\n<li><strong>Handler:<\/strong> An object containing methods (called traps) that define custom behaviour for operations performed on the target.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Whenever an operation is performed on the Proxy, the corresponding handler method can intercept that operation and execute custom logic.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Basic Example of JavaScript Proxy<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s understand how a JavaScript Proxy works with a simple example.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"502\" height=\"322\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-9.png\" alt=\"Proxy in JavaScript example demonstrating the get handler and default property value 37\" class=\"wp-image-13320\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-9.png 502w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-9-300x192.png 300w\" sizes=\"(max-width: 502px) 100vw, 502px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Explanation<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In the above example:<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>We create a handler object with a <code>get<\/code> method.<\/li>\n\n\n\n<li>The <code>get<\/code> method checks whether the requested property exists in the target object.<\/li>\n\n\n\n<li>If the property exists, it returns its corresponding value.<\/li>\n\n\n\n<li>If the property does not exist, it returns the default value <code>37<\/code>.<\/li>\n\n\n\n<li>We create a Proxy object using the <code>Proxy<\/code> constructor.<\/li>\n\n\n\n<li>We assign values to properties <code>a<\/code> and <code>b<\/code> and access them through the Proxy.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Output:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-10.png\"><img decoding=\"async\" width=\"313\" height=\"85\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-10.png\" alt=\"JavaScript Proxy console output showing the values 1 undefined and false 37 from the get handler example.\" class=\"wp-image-13321\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-10.png 313w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-10-300x81.png 300w\" sizes=\"(max-width: 313px) 100vw, 313px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Here, <code>p.a<\/code> returns <code>1<\/code> because the property exists. Similarly, <code>p.b<\/code> returns <code>undefined<\/code> because the property exists but its value is undefined.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, <code>p.c<\/code> returns <code>37<\/code> because the property does not exist in the target object.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>in<\/code> operator returns <code>false<\/code> because the handler does not define a <code>has<\/code> trap to customize property existence checks.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">JavaScript Proxy Syntax<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The basic syntax for creating a Proxy object is:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img decoding=\"async\" width=\"352\" height=\"35\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-11.png\" alt=\"JavaScript Proxy syntax showing how to create a Proxy object using the target and handler parameters.\" class=\"wp-image-13322\" style=\"aspect-ratio:10.061188030370701;width:352px;height:auto\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-11.png 352w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-11-300x30.png 300w\" sizes=\"(max-width: 352px) 100vw, 352px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The constructor accepts two arguments:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>target:<\/strong> The original object that you want to wrap with a Proxy.<\/li>\n\n\n\n<li><strong>handler:<\/strong> An object containing traps that define custom behaviour for operations performed on the target.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Common JavaScript Proxy Handler Methods<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">JavaScript provides several handler methods that allow developers to intercept different object operations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Some commonly used Proxy handler methods are:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. get()<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>get()<\/code> method intercepts property access operations.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-12.png\"><img loading=\"lazy\" decoding=\"async\" width=\"641\" height=\"201\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-12.png\" alt=\"\" class=\"wp-image-13323\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-12.png 641w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-12-300x94.png 300w\" sizes=\"(max-width: 641px) 100vw, 641px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Output:<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">John\nProperty not found<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. set()<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>set()<\/code> method intercepts operations that assign values to object properties.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-13.png\"><img loading=\"lazy\" decoding=\"async\" width=\"580\" height=\"313\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-13.png\" alt=\"\" class=\"wp-image-13324\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-13.png 580w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-13-300x162.png 300w\" sizes=\"(max-width: 580px) 100vw, 580px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Output:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-14.png\"><img loading=\"lazy\" decoding=\"async\" width=\"401\" height=\"43\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-14.png\" alt=\"\" class=\"wp-image-13325\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-14.png 401w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-14-300x32.png 300w\" sizes=\"(max-width: 401px) 100vw, 401px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Here, the Proxy validates the assigned value before updating the target object.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. has()<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>has()<\/code> method intercepts the <code>in<\/code> operator when checking whether a property exists in an object.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-15.png\"><img loading=\"lazy\" decoding=\"async\" width=\"483\" height=\"273\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-15.png\" alt=\"\" class=\"wp-image-13326\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-15.png 483w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-15-300x170.png 300w\" sizes=\"(max-width: 483px) 100vw, 483px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Output:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-16.png\"><img loading=\"lazy\" decoding=\"async\" width=\"263\" height=\"64\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-16.png\" alt=\"\" class=\"wp-image-13327\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">4. apply()<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>apply()<\/code> method intercepts function calls when the target is a callable function.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-17.png\"><img loading=\"lazy\" decoding=\"async\" width=\"572\" height=\"221\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-17.png\" alt=\"\" class=\"wp-image-13328\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-17.png 572w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-17-300x116.png 300w\" sizes=\"(max-width: 572px) 100vw, 572px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Output:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-18.png\"><img loading=\"lazy\" decoding=\"async\" width=\"292\" height=\"68\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-18.png\" alt=\"\" class=\"wp-image-13329\"\/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>apply()<\/code> trap executes custom logic before calling the original function.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is Proxy.revocable() in JavaScript?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">JavaScript also provides the <code>Proxy.revocable()<\/code> method, which creates a revocable Proxy object.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A revocable Proxy can be disabled whenever required by calling its <code>revoke()<\/code> method.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Syntax:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-19.png\"><img loading=\"lazy\" decoding=\"async\" width=\"372\" height=\"32\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-19.png\" alt=\"\" class=\"wp-image-13330\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-19.png 372w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-19-300x26.png 300w\" sizes=\"(max-width: 372px) 100vw, 372px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Example:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-20.png\"><img loading=\"lazy\" decoding=\"async\" width=\"549\" height=\"260\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-20.png\" alt=\"\" class=\"wp-image-13331\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-20.png 549w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/image-20-300x142.png 300w\" sizes=\"(max-width: 549px) 100vw, 549px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After calling <code>revoke()<\/code>, accessing the Proxy object throws a <code>TypeError<\/code> because the Proxy has been revoked.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Advantages of JavaScript Proxy<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">JavaScript Proxy provides several advantages:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Data Validation:<\/strong> Validate values before assigning them to object properties.<\/li>\n\n\n\n<li><strong>Access Control:<\/strong> Control access to specific object properties.<\/li>\n\n\n\n<li><strong>Property Interception:<\/strong> Intercept property access and modification operations.<\/li>\n\n\n\n<li><strong>Logging:<\/strong> Track object operations for debugging purposes.<\/li>\n\n\n\n<li><strong>Custom Behaviour:<\/strong> Define custom logic for different object operations.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">JavaScript Proxy is a useful feature that allows developers to intercept and customize operations performed on objects and functions. By using a target object and a handler, developers can control property access, assignment, function calls, and other fundamental operations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Proxy handler methods such as <code>get()<\/code>, <code>set()<\/code>, <code>has()<\/code>, and <code>apply()<\/code> make it easier to implement data validation, access control, logging, and custom object behaviour.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Understanding JavaScript Proxy helps developers write more flexible and maintainable JavaScript applications.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently Asked Questions (FAQs)<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. What is a Proxy in JavaScript?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A Proxy in JavaScript is an object that wraps another object and allows developers to intercept and customize its fundamental operations using handler methods called traps.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. What are the main components of a JavaScript Proxy?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A JavaScript Proxy has two main components: a target and a handler. The target is the original object, while the handler contains methods that define custom behaviour for operations performed on the target.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. What is the use of Proxy.revocable() in JavaScript?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>Proxy.revocable()<\/code> method creates a Proxy that can be disabled when required. It returns a Proxy object and a <code>revoke()<\/code> function. Calling the <code>revoke()<\/code> function disables the Proxy permanently.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related Articles<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-use-shift-and-unshift-method-in-javascript\/\">How to use shift and unshift method in javascript<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-remove-install-oracle-java-jdk-in-ubuntu-16-0-4\/\">How to remove &amp; install oracle java [Jdk] in ubuntu 16.0.4<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Need Help with JavaScript Development?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Are you looking for professional assistance with JavaScript development, frontend optimization, web application development, or troubleshooting complex JavaScript issues?<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Our development team at <a href=\"https:\/\/pheonixsolutions.com\/web-development\/\"><strong>Pheonix Solutions<\/strong> <\/a>can help you build, maintain, and optimize modern web applications using reliable development practices.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Get in touch with our team <a href=\"https:\/\/pheonixsolutions.com\/contact\">here<\/a> to discuss your web development requirements.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Post Date: March 30, 2020Last Updated: November 14, 2026 Introduction JavaScript Proxy is a powerful feature that allows developers to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":13334,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[661,758],"class_list":["post-5489","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-architecture","tag-javascript","tag-proxy","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1qx","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/03\/What-Is-a-Proxy-in-JavaScript_.png","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5489","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=5489"}],"version-history":[{"count":4,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5489\/revisions"}],"predecessor-version":[{"id":13337,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5489\/revisions\/13337"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media\/13334"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=5489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=5489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=5489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}