{"id":590,"date":"2023-07-01T20:37:05","date_gmt":"2023-07-01T15:07:05","guid":{"rendered":"https:\/\/dashingknights.com\/news\/?page_id=590"},"modified":"2023-07-01T20:37:38","modified_gmt":"2023-07-01T15:07:38","slug":"javascript-variable-hoisting-function-scope-output-analysis","status":"publish","type":"page","link":"https:\/\/dashingknights.com\/news\/javascript-variable-hoisting-function-scope-output-analysis\/","title":{"rendered":"Understanding JavaScript Variable Hoisting and Function Scope"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Analyzing the Output of a Code Snippet<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-orange-color\">What will be the output of the following code snippet?<\/mark><\/strong><\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro padding-bottom-disabled\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem\"><span style=\"display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#2e3440ff\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"54\" height=\"14\" viewBox=\"0 0 54 14\"><g fill=\"none\" fill-rule=\"evenodd\" transform=\"translate(1 1)\"><circle cx=\"6\" cy=\"6\" r=\"6\" fill=\"#FF5F56\" stroke=\"#E0443E\" stroke-width=\".5\"><\/circle><circle cx=\"26\" cy=\"6\" r=\"6\" fill=\"#FFBD2E\" stroke=\"#DEA123\" stroke-width=\".5\"><\/circle><circle cx=\"46\" cy=\"6\" r=\"6\" fill=\"#27C93F\" stroke=\"#1AAB29\" stroke-width=\".5\"><\/circle><\/g><\/svg><\/span><span role=\"button\" tabindex=\"0\" data-code=\"function test() {\n  console.log(a);\n  console.log(foo());\n\n  var a = 1;\n  function foo() {\n    return 2;\n  }\n}\n\ntest();\" style=\"color:#d8dee9ff;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki nord\" style=\"background-color: #2e3440ff\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #81A1C1\">function<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">test<\/span><span style=\"color: #ECEFF4\">()<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #D8DEE9\">console<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">log<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #D8DEE9\">a<\/span><span style=\"color: #D8DEE9FF\">)<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #D8DEE9\">console<\/span><span style=\"color: #ECEFF4\">.<\/span><span style=\"color: #88C0D0\">log<\/span><span style=\"color: #D8DEE9FF\">(<\/span><span style=\"color: #88C0D0\">foo<\/span><span style=\"color: #D8DEE9FF\">())<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #81A1C1\">var<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #D8DEE9\">a<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #81A1C1\">=<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">1<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #81A1C1\">function<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #88C0D0\">foo<\/span><span style=\"color: #ECEFF4\">()<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #ECEFF4\">{<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">    <\/span><span style=\"color: #81A1C1\">return<\/span><span style=\"color: #D8DEE9FF\"> <\/span><span style=\"color: #B48EAD\">2<\/span><span style=\"color: #81A1C1\">;<\/span><\/span>\n<span class=\"line\"><span style=\"color: #D8DEE9FF\">  <\/span><span style=\"color: #ECEFF4\">}<\/span><\/span>\n<span class=\"line\"><span style=\"color: #ECEFF4\">}<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #88C0D0\">test<\/span><span style=\"color: #D8DEE9FF\">()<\/span><span style=\"color: #81A1C1\">;<\/span><\/span><\/code><\/pre><span style=\"display:flex;align-items:flex-end;padding:10px;width:100%;justify-content:flex-end;background-color:#2e3440ff;color:#c8d0e0;font-size:12px;line-height:1;position:relative\">JavaScript<\/span><\/div>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<p class=\"wp-block-paragraph\"><strong>Options: <\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>A. undefined, undefined<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong> B. ReferenceError <\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>C. 1, 2 <\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>D. 2, undefined<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-cyan-blue-color\">Correct Answer: A. undefined, undefined<\/mark><\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Explanation: <\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The correct answer is <strong>option A<\/strong>. undefined, undefined. This result can be understood by considering the concepts of variable <a href=\"https:\/\/www.w3schools.com\/js\/js_hoisting.asp\" target=\"_blank\" rel=\"noreferrer noopener\">hoisting<\/a> and <a href=\"https:\/\/www.geeksforgeeks.org\/all-about-functions-and-scopes-in-javascript\/\" target=\"_blank\" rel=\"noreferrer noopener\">function scope<\/a> in JavaScript.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In JavaScript, variables declared with the <code>var<\/code> keyword are hoisted to the top of their containing scope. However, they are not assigned a value during hoisting, resulting in an initial value of <code>undefined<\/code>. Similarly, function declarations are also hoisted, allowing them to be called before their actual declaration in the code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><code>In the given code snippet, the variable a and the function foo() are hoisted within the test() function scope. When console.log(a) is executed, a is declared but not yet assigned a value, leading to undefined being printed. Similarly, console.log(foo()) calls the foo() function, which returns 2 as expected.<\/code><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Understanding hoisting and function scope is crucial in JavaScript to avoid unexpected results and ensure proper variable and function usage.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Analyzing the Output of a Code Snippet What will be the output of the following code snippet? Options: A. undefined, undefined B. ReferenceError C. 1, 2 D. 2, undefined Correct Answer: A. undefined, undefined Explanation: The correct answer is option A. undefined, undefined. This result can be understood by considering the concepts of variable hoisting [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"nf_dc_page":"","om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","_glsr_average":0,"_glsr_ranking":0,"_glsr_reviews":0,"footnotes":""},"class_list":["post-590","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Understanding JavaScript Variable Hoisting and Function Scope &#171; News Beat<\/title>\n<meta name=\"description\" content=\"Explore the output of a JavaScript code snippet involving variable hoisting and function scope. Understand the concept of hoisting, where variables and functions are declared before their actual code execution. Analyze the code&#039;s behavior and predict the output, considering the interplay between hoisted variables and function calls. Gain insights into JavaScript&#039;s function-level scope and variable initialization. Discover the correct output and enhance your understanding of JavaScript&#039;s unique behavior. #JavaScript #VariableHoisting #FunctionScope\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dashingknights.com\/news\/javascript-variable-hoisting-function-scope-output-analysis\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Understanding JavaScript Variable Hoisting and Function Scope\" \/>\n<meta property=\"og:description\" content=\"Explore the output of a JavaScript code snippet involving variable hoisting and function scope. Understand the concept of hoisting, where variables and functions are declared before their actual code execution. Analyze the code&#039;s behavior and predict the output, considering the interplay between hoisted variables and function calls. Gain insights into JavaScript&#039;s function-level scope and variable initialization. Discover the correct output and enhance your understanding of JavaScript&#039;s unique behavior. #JavaScript #VariableHoisting #FunctionScope\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dashingknights.com\/news\/javascript-variable-hoisting-function-scope-output-analysis\/\" \/>\n<meta property=\"og:site_name\" content=\"News Beat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/groups\/609976580889610\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-01T15:07:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/dashingknights.com\/news\/wp-content\/uploads\/2023\/02\/news-beat-intro-promo.jpg?fit=1080%2C1080&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1080\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Understanding JavaScript Variable Hoisting and Function Scope\" \/>\n<meta name=\"twitter:description\" content=\"Explore the output of a JavaScript code snippet involving variable hoisting and function scope. Understand the concept of hoisting, where variables and functions are declared before their actual code execution. Analyze the code&#039;s behavior and predict the output, considering the interplay between hoisted variables and function calls. Gain insights into JavaScript&#039;s function-level scope and variable initialization. Discover the correct output and enhance your understanding of JavaScript&#039;s unique behavior. #JavaScript #VariableHoisting #FunctionScope\" \/>\n<meta name=\"twitter:site\" content=\"@DashingKnights\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Understanding JavaScript Variable Hoisting and Function Scope &#171; News Beat","description":"Explore the output of a JavaScript code snippet involving variable hoisting and function scope. Understand the concept of hoisting, where variables and functions are declared before their actual code execution. Analyze the code's behavior and predict the output, considering the interplay between hoisted variables and function calls. Gain insights into JavaScript's function-level scope and variable initialization. Discover the correct output and enhance your understanding of JavaScript's unique behavior. #JavaScript #VariableHoisting #FunctionScope","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:\/\/dashingknights.com\/news\/javascript-variable-hoisting-function-scope-output-analysis\/","og_locale":"en_US","og_type":"article","og_title":"Understanding JavaScript Variable Hoisting and Function Scope","og_description":"Explore the output of a JavaScript code snippet involving variable hoisting and function scope. Understand the concept of hoisting, where variables and functions are declared before their actual code execution. Analyze the code's behavior and predict the output, considering the interplay between hoisted variables and function calls. Gain insights into JavaScript's function-level scope and variable initialization. Discover the correct output and enhance your understanding of JavaScript's unique behavior. #JavaScript #VariableHoisting #FunctionScope","og_url":"https:\/\/dashingknights.com\/news\/javascript-variable-hoisting-function-scope-output-analysis\/","og_site_name":"News Beat","article_publisher":"https:\/\/www.facebook.com\/groups\/609976580889610","article_modified_time":"2023-07-01T15:07:38+00:00","og_image":[{"width":1080,"height":1080,"url":"https:\/\/i0.wp.com\/dashingknights.com\/news\/wp-content\/uploads\/2023\/02\/news-beat-intro-promo.jpg?fit=1080%2C1080&ssl=1","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_title":"Understanding JavaScript Variable Hoisting and Function Scope","twitter_description":"Explore the output of a JavaScript code snippet involving variable hoisting and function scope. Understand the concept of hoisting, where variables and functions are declared before their actual code execution. Analyze the code's behavior and predict the output, considering the interplay between hoisted variables and function calls. Gain insights into JavaScript's function-level scope and variable initialization. Discover the correct output and enhance your understanding of JavaScript's unique behavior. #JavaScript #VariableHoisting #FunctionScope","twitter_site":"@DashingKnights","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"NewsArticle","@id":"https:\/\/dashingknights.com\/news\/javascript-variable-hoisting-function-scope-output-analysis\/#article","isPartOf":{"@id":"https:\/\/dashingknights.com\/news\/javascript-variable-hoisting-function-scope-output-analysis\/"},"author":{"name":"Depak","@id":"https:\/\/dashingknights.com\/news\/#\/schema\/person\/1b1fb25832e42bc14f058e78c40fc91f"},"headline":"Understanding JavaScript Variable Hoisting and Function Scope","datePublished":"2023-07-01T15:07:05+00:00","dateModified":"2023-07-01T15:07:38+00:00","mainEntityOfPage":{"@id":"https:\/\/dashingknights.com\/news\/javascript-variable-hoisting-function-scope-output-analysis\/"},"wordCount":134,"commentCount":0,"publisher":{"@id":"https:\/\/dashingknights.com\/news\/#organization"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dashingknights.com\/news\/javascript-variable-hoisting-function-scope-output-analysis\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dashingknights.com\/news\/javascript-variable-hoisting-function-scope-output-analysis\/","url":"https:\/\/dashingknights.com\/news\/javascript-variable-hoisting-function-scope-output-analysis\/","name":"Understanding JavaScript Variable Hoisting and Function Scope &#171; News Beat","isPartOf":{"@id":"https:\/\/dashingknights.com\/news\/#website"},"datePublished":"2023-07-01T15:07:05+00:00","dateModified":"2023-07-01T15:07:38+00:00","description":"Explore the output of a JavaScript code snippet involving variable hoisting and function scope. Understand the concept of hoisting, where variables and functions are declared before their actual code execution. Analyze the code's behavior and predict the output, considering the interplay between hoisted variables and function calls. Gain insights into JavaScript's function-level scope and variable initialization. Discover the correct output and enhance your understanding of JavaScript's unique behavior. #JavaScript #VariableHoisting #FunctionScope","breadcrumb":{"@id":"https:\/\/dashingknights.com\/news\/javascript-variable-hoisting-function-scope-output-analysis\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dashingknights.com\/news\/javascript-variable-hoisting-function-scope-output-analysis\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/dashingknights.com\/news\/javascript-variable-hoisting-function-scope-output-analysis\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dashingknights.com\/news\/"},{"@type":"ListItem","position":2,"name":"JavaScript > Variable Hoisting & Function Scope > Output Analysis"}]},{"@type":"WebSite","@id":"https:\/\/dashingknights.com\/news\/#website","url":"https:\/\/dashingknights.com\/news\/","name":"News Beat","description":"Stay Ahead: Get the News Before Everyone Else","publisher":{"@id":"https:\/\/dashingknights.com\/news\/#organization"},"alternateName":"dashing knights news","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dashingknights.com\/news\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/dashingknights.com\/news\/#organization","name":"dashing knights - NewsBeat","alternateName":"NewsBeat - dashing knights","url":"https:\/\/dashingknights.com\/news\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dashingknights.com\/news\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/dashingknights.com\/news\/wp-content\/uploads\/2023\/01\/cropped-dashingknights.com_.jpg?fit=564%2C565&ssl=1","contentUrl":"https:\/\/i0.wp.com\/dashingknights.com\/news\/wp-content\/uploads\/2023\/01\/cropped-dashingknights.com_.jpg?fit=564%2C565&ssl=1","width":564,"height":565,"caption":"dashing knights - NewsBeat"},"image":{"@id":"https:\/\/dashingknights.com\/news\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/groups\/609976580889610","https:\/\/x.com\/DashingKnights","https:\/\/www.instagram.com\/_dashing_knights_\/","https:\/\/www.instagram.com\/depak002021\/"]},{"@type":"Person","@id":"https:\/\/dashingknights.com\/news\/#\/schema\/person\/1b1fb25832e42bc14f058e78c40fc91f","name":"Depak","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3408507aebbe08301de82a7aeba3beb366149b3e45491c934a6043faa39413d8?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3408507aebbe08301de82a7aeba3beb366149b3e45491c934a6043faa39413d8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3408507aebbe08301de82a7aeba3beb366149b3e45491c934a6043faa39413d8?s=96&d=mm&r=g","caption":"Depak"},"sameAs":["https:\/\/dashingknights.com\/","https:\/\/www.facebook.com\/groups\/609976580889610","https:\/\/www.instagram.com\/_dashing_knights_\/","https:\/\/www.linkedin.com\/in\/depak-kumarasan-999542227\/"],"url":"https:\/\/dashingknights.com\/news\/author\/dk-101002098\/"}]}},"jetpack-related-posts":[{"id":577,"url":"https:\/\/dashingknights.com\/news\/sorting-arrays-javascript-snippet-functionality-explanation\/","url_meta":{"origin":590,"position":0},"title":"Sorting Arrays in JavaScript","author":"Depak","date":"June 30, 2023","format":false,"excerpt":"Exploring the commonly used code snippet and its functionality In JavaScript, sorting arrays is a common operation when it comes to manipulating and organizing data. Sorting allows us to arrange the elements of an array in a specific order, making it easier to search, compare, or present the data in\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"sorting-arrays-in-javascript","src":"https:\/\/i0.wp.com\/dashingknights.com\/news\/wp-content\/uploads\/2023\/06\/sorting-arrays-in-javascript.webp?fit=1024%2C1024&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/dashingknights.com\/news\/wp-content\/uploads\/2023\/06\/sorting-arrays-in-javascript.webp?fit=1024%2C1024&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/dashingknights.com\/news\/wp-content\/uploads\/2023\/06\/sorting-arrays-in-javascript.webp?fit=1024%2C1024&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/dashingknights.com\/news\/wp-content\/uploads\/2023\/06\/sorting-arrays-in-javascript.webp?fit=1024%2C1024&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":586,"url":"https:\/\/dashingknights.com\/news\/python-user-input-input-function-explanation\/","url_meta":{"origin":590,"position":1},"title":"Reading User Input in Python","author":"Depak","date":"June 30, 2023","format":false,"excerpt":"Introduction to User Input in Python In Python, reading user input is a fundamental aspect of interactive programming. It allows users to provide input to the program during runtime, enabling dynamic and personalized interactions. The input() Function To read user input in Python, the commonly used code snippet is input().\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"python-read-user-input-method","src":"https:\/\/i0.wp.com\/dashingknights.com\/news\/wp-content\/uploads\/2023\/06\/python-read-user-input-method.webp?fit=512%2C512&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/Peyf42-9w","_links":{"self":[{"href":"https:\/\/dashingknights.com\/news\/wp-json\/wp\/v2\/pages\/590","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dashingknights.com\/news\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/dashingknights.com\/news\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/dashingknights.com\/news\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dashingknights.com\/news\/wp-json\/wp\/v2\/comments?post=590"}],"version-history":[{"count":1,"href":"https:\/\/dashingknights.com\/news\/wp-json\/wp\/v2\/pages\/590\/revisions"}],"predecessor-version":[{"id":591,"href":"https:\/\/dashingknights.com\/news\/wp-json\/wp\/v2\/pages\/590\/revisions\/591"}],"wp:attachment":[{"href":"https:\/\/dashingknights.com\/news\/wp-json\/wp\/v2\/media?parent=590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}