{"id":5436,"date":"2023-01-06T13:07:21","date_gmt":"2023-01-06T18:07:21","guid":{"rendered":"https:\/\/www.cloudsurph.com\/?p=5436"},"modified":"2023-01-06T13:08:30","modified_gmt":"2023-01-06T18:08:30","slug":"what-is-asynchronous-javascript","status":"publish","type":"post","link":"https:\/\/www.cloudsurph.com\/what-is-asynchronous-javascript\/","title":{"rendered":"Introduction to Asynchronous Javascript"},"content":{"rendered":"<h3>Introduction to Asynchronous Javascript<\/h3>\n<p>Asynchronous JavaScript the best described as being able to multitask while running one program and working on another program. In the other words, asynchronous coding allows you to work on other tasks while that code is running if your program is running a particularly long task.<\/p>\n<h3><strong>Synchronous Code<\/strong><\/h3>\n<p>JavaScript is a very fast language, but some actions require time, no matter how little. In this case, for example, of a request to a database that may take some time or even a complex mathematical calculation, synchronous code execution will at least block the rest of the code or break it.<\/p>\n<p><em><strong>IF you want then buy a good, reliable, secure web\u00a0<a href=\"https:\/\/www.cloudsurph.com\/windows-vps-hosting\/\">hosting<\/a>\u00a0service \u00a0from here:\u00a0<a href=\"https:\/\/hosting.cloudsurph.com\/\">click here<\/a><\/strong><\/em><\/p>\n<p>Now, give the example below of synchronous code<\/p>\n<pre class=\"prettyprint\">\r\nconst showGreeting = &lt;span class=\"hljs-function\"&gt;&lt;span class=\"hljs-params\"&gt;(content)&lt;\/span&gt; =&gt;&lt;\/span&gt; {\r\n &lt;span class=\"hljs-built_in\"&gt;console&lt;\/span&gt;.log(content);\r\n}\r\n\r\nconst runMeFirst = &lt;span class=\"hljs-function\"&gt;&lt;span class=\"hljs-params\"&gt;()&lt;\/span&gt; =&gt;&lt;\/span&gt; {\r\nshowGreeting(&lt;span class=\"hljs-string\"&gt;\"Hello\"&lt;\/span&gt;);\r\n}\r\n\r\nconst runMeNext = &lt;span class=\"hljs-function\"&gt;&lt;span class=\"hljs-params\"&gt;()&lt;\/span&gt; =&gt;&lt;\/span&gt; {\r\nshowGreeting(&lt;span class=\"hljs-string\"&gt;\"World!\"&lt;\/span&gt;);\r\n}\r\n\r\nrunMeFirst();\r\nrunMeNext();\r\n<\/pre>\n<h3>Asynchronous Execution<\/h3>\n<p>So, there are three ways to run code asynchronously like below:<\/p>\n<ul>\n<li>Callback functions<\/li>\n<li>Promises (ES6)<\/li>\n<li>Async\/Await (ES8)<\/li>\n<\/ul>\n<h3><strong>Callback Functions<\/strong><\/h3>\n<p>Firstly, Callbacks are the original way JavaScript used to run code asynchronously. It basically is a function that is passed as a parameter to another function. Callbacks are executed when the previous one has finished.<\/p>\n<h5><em><strong>You can purchase your\u00a0<a href=\"https:\/\/hosting.cloudsurph.com\/\">hosting from Cloudsurph.com<\/a>,\u00a0<a href=\"https:\/\/hosting.cloudsurph.com\/\">Cloudsurph hosting<\/a>\u00a0is a reliable hosting option for business and personal projects. We offer insight and help on system configuration issues and code errors or bugs<\/strong>.<\/em><\/h5>\n<p>For our code above, this is an implementation of asynchronously running the code above check the below code:<\/p>\n<pre class=\"prettyprint\">\r\nconst showGreeting = (content) =&gt; {\r\nconsole.log(content);\r\n};\r\n\r\nconst runMeFirst = (callback) =&gt; {\r\nsetTimeout(() =&gt; {\r\nshowGreeting('Hello');\r\ncallback();\r\n}, 1000);\r\n};\r\n\r\nconst runMeNext = () =&gt; {\r\nshowGreeting('World!');\r\n};\r\n\r\nrunMeFirst(runMeNext);\r\n<\/pre>\n<h3>Promises<\/h3>\n<p>We can say, a promise is an object that represents the eventual completion or failure of an asynchronous operation. In other words, it is an object that represents an operation that has not been completed yet.<\/p>\n<pre class=\"prettyprint\">\r\nconst runMeFirst = () =&gt; new Promise((resolve, reject) =&gt; {\r\nsetTimeout(() =&gt; {\r\nshowGreeting('Hello');\r\n\r\n\/\/ Error handling would be needed here.\r\n\/\/ For the sake of our example let's assume that the fetch request was successful.\r\nconst error = false;\r\n\r\nif (!error) {\r\n \/\/ If there's no error we resolve the promise.\r\n resolve();\r\n} else {\r\n\/\/ If there's an error we reject it and handle the error.\r\nreject(new Error('Something went wrong'));\r\n\u00a0 }\r\n}, 1000);\r\n});\r\n<\/pre>\n<p>Now let\u2019s see below incorporate our new function into our code:<\/p>\n<pre class=\"prettyprint\">\r\nconst showGreeting = (content) =&gt; {\r\n console.log(content);\r\n};\r\n\r\nconst runMeFirst = () =&gt; new Promise((resolve, reject) =&gt; {\r\n\u00a0 setTimeout(() =&gt; {\r\n\u00a0 \u00a0 showGreeting('Hello');\r\n\u00a0 \u00a0 const error = false;\r\n\r\n\u00a0 if (!error) {\r\n \u00a0 \u00a0 resolve();\r\n\u00a0 \u00a0 } else {\r\n\u00a0 \u00a0 reject(new Error('Something went wrong'));\r\n\u00a0 \u00a0 }\r\n\u00a0 }, 1000);\r\n});\r\n\r\nconst runMeNext = () =&gt; {\r\n showGreeting('World!');\r\n};\r\n\r\nrunMeFirst()\r\n\u00a0 .then(runMeNext)\r\n .catch((err) =&gt; console.log(err)\r\n<\/pre>\n<h3>Async\/Await<\/h3>\n<p>Here, a newer way to handle asynchronous code was made available with the introduction of the async and await keywords in ES8 (or ES2017).<\/p>\n<p>Finally, our previous example can then be rewritten as below:<\/p>\n<pre class=\"prettyprint\">\r\nconst showGreeting = (content) =&gt; {\r\n console.log(content);\r\n};\r\n\r\n\/\/ The function returns a promise.\r\nconst runMeFirst = () =&gt;\r\n new Promise((resolve, reject) =&gt; {\r\n \u00a0 setTimeout(() =&gt; {\r\n\u00a0 \u00a0 \u00a0 showGreeting('Hello');\r\n\u00a0 \u00a0 \u00a0 const error = false;\r\n\r\n\u00a0 if (!error) {\r\n\u00a0 \u00a0 \u00a0 \u00a0 resolve();\r\n \u00a0 \u00a0 } else {\r\n \u00a0 \u00a0 \u00a0 reject(new Error('Something went wrong'))\r\n\u00a0 \u00a0 \u00a0 }\r\n \u00a0 }, 1000);\r\n\u00a0 });\r\n\r\n\/\/ The synchronous function.\r\nconst runMeNext = () =&gt; {\r\n\u00a0 showGreeting('World!');\r\n};\r\n\r\n\/\/ The new asynchronous function using async\/await.\r\nconst init = async () =&gt; {\r\n await runMeFirst();\r\n\u00a0 runMeNext();\r\n};\r\n\r\n\/\/ Call the new asynchronous function.\r\ninit();\r\n<\/pre>\n<h3>Conclusion<\/h3>\n<p>Lastly, we can say, that Asynchronous JavaScript unleashes the full power the language has to offer. Also, the Asynchronous relatively recent introduction of progressive ways to use it makes us be sure of the health and future of JavaScript.<\/p>\n<p>That\u2019s it. If you enjoyed reading this article and have more questions please reach out to our\u00a0<a href=\"https:\/\/hosting.cloudsurph.com\/submitticket.php?step=2&amp;deptid=1\">support team<\/a>\u00a0via live chat or\u00a0<a href=\"mailto:support@cloudsurph.com\">email<\/a>\u00a0and we would be glad to help you. we provide server\u00a0<a href=\"https:\/\/hosting.cloudsurph.com\/\">hosting<\/a>\u00a0for all types of need and we can even get your\u00a0<a href=\"https:\/\/hosting.cloudsurph.com\/\">server<\/a>\u00a0up and running with the service of your choice.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction to Asynchronous Javascript Asynchronous JavaScript the best described as being able to multitask while running one program and working on another program. In the other words, asynchronous coding allows you to work on other tasks while that code is running if your program is running a particularly long task. Synchronous Code JavaScript is a [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":5437,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[157,25,162,158,159,44,1],"tags":[54,47,105,103,48,113],"class_list":["post-5436","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos-7","category-web-hosting-virtualization","category-javascript","category-linux-basics","category-linux-server","category-kvm-xen","category-virtual-private-servers","tag-best-vps-hosting-server-maryland","tag-cheap-cloud-servers","tag-cheap-storage-server-hosting","tag-cheapest-vps","tag-dedicated-server-hosting-in-washington-d-c","tag-speed-test-vps"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is Asynchronous JavaScript?<\/title>\n<meta name=\"description\" content=\"Introduction Asynchronous Javascript, What is Asynchronous Javascript, Synchronous Code, Asynchronous Execution, Callback functions, Promises\" \/>\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.cloudsurph.com\/what-is-asynchronous-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is Asynchronous JavaScript?\" \/>\n<meta property=\"og:description\" content=\"Introduction Asynchronous Javascript, What is Asynchronous Javascript, Synchronous Code, Asynchronous Execution, Callback functions, Promises\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cloudsurph.com\/what-is-asynchronous-javascript\/\" \/>\n<meta property=\"og:site_name\" content=\"Cloudsurph Web Hosting Washington D.C.\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/CloudSurph\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-06T18:07:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-06T18:08:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2023\/01\/What-is-Asynchronous-Javascript.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1264\" \/>\n\t<meta property=\"og:image:height\" content=\"760\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Rony\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@cloudsurph\" \/>\n<meta name=\"twitter:site\" content=\"@Cloud_Surph\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rony\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/what-is-asynchronous-javascript\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/what-is-asynchronous-javascript\\\/\"},\"author\":{\"name\":\"Rony\",\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/#\\\/schema\\\/person\\\/ac9b4dd136d96e50d5f29c560191e7ed\"},\"headline\":\"Introduction to Asynchronous Javascript\",\"datePublished\":\"2023-01-06T18:07:21+00:00\",\"dateModified\":\"2023-01-06T18:08:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/what-is-asynchronous-javascript\\\/\"},\"wordCount\":424,\"publisher\":{\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/what-is-asynchronous-javascript\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.cloudsurph.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/What-is-Asynchronous-Javascript.jpg\",\"keywords\":[\"Best VPS hosting server Maryland\",\"Cheap Cloud Servers\",\"Cheap Storage Server Hosting\",\"Cheapest VPS\",\"Dedicated Server Hosting in Washington D.C\",\"Speed test VPS\"],\"articleSection\":[\"CentOS 7\",\"Cloud Hosting\",\"JavaScript\",\"Linux Basics\",\"Linux Server\",\"Virtualization\",\"VPS Servers\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/what-is-asynchronous-javascript\\\/\",\"url\":\"https:\\\/\\\/www.cloudsurph.com\\\/what-is-asynchronous-javascript\\\/\",\"name\":\"What is Asynchronous JavaScript?\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/what-is-asynchronous-javascript\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/what-is-asynchronous-javascript\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.cloudsurph.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/What-is-Asynchronous-Javascript.jpg\",\"datePublished\":\"2023-01-06T18:07:21+00:00\",\"dateModified\":\"2023-01-06T18:08:30+00:00\",\"description\":\"Introduction Asynchronous Javascript, What is Asynchronous Javascript, Synchronous Code, Asynchronous Execution, Callback functions, Promises\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/what-is-asynchronous-javascript\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.cloudsurph.com\\\/what-is-asynchronous-javascript\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/what-is-asynchronous-javascript\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.cloudsurph.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/What-is-Asynchronous-Javascript.jpg\",\"contentUrl\":\"https:\\\/\\\/www.cloudsurph.com\\\/wp-content\\\/uploads\\\/2023\\\/01\\\/What-is-Asynchronous-Javascript.jpg\",\"width\":1264,\"height\":760,\"caption\":\"Introduction to Asynchronous Javascript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/what-is-asynchronous-javascript\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.cloudsurph.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Introduction to Asynchronous Javascript\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/#website\",\"url\":\"https:\\\/\\\/www.cloudsurph.com\\\/\",\"name\":\"Cloudsurph Web Hosting Washington D.C.\",\"description\":\"Dedicated Server Hosting\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.cloudsurph.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/#organization\",\"name\":\"CloudSurph Technology Solutions\",\"url\":\"https:\\\/\\\/www.cloudsurph.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.cloudsurph.com\\\/wp-content\\\/uploads\\\/2016\\\/04\\\/cloudsurph-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.cloudsurph.com\\\/wp-content\\\/uploads\\\/2016\\\/04\\\/cloudsurph-logo.png\",\"width\":2348,\"height\":1692,\"caption\":\"CloudSurph Technology Solutions\"},\"image\":{\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/CloudSurph\\\/\",\"https:\\\/\\\/x.com\\\/Cloud_Surph\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.cloudsurph.com\\\/#\\\/schema\\\/person\\\/ac9b4dd136d96e50d5f29c560191e7ed\",\"name\":\"Rony\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/40163fe1eb49d5eddd81954e8ad5122633e141df15b0733d07fbe4a156688ba5?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/40163fe1eb49d5eddd81954e8ad5122633e141df15b0733d07fbe4a156688ba5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/40163fe1eb49d5eddd81954e8ad5122633e141df15b0733d07fbe4a156688ba5?s=96&d=mm&r=g\",\"caption\":\"Rony\"},\"sameAs\":[\"https:\\\/\\\/x.com\\\/cloudsurph\"],\"url\":\"https:\\\/\\\/www.cloudsurph.com\\\/author\\\/ron\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is Asynchronous JavaScript?","description":"Introduction Asynchronous Javascript, What is Asynchronous Javascript, Synchronous Code, Asynchronous Execution, Callback functions, Promises","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.cloudsurph.com\/what-is-asynchronous-javascript\/","og_locale":"en_US","og_type":"article","og_title":"What is Asynchronous JavaScript?","og_description":"Introduction Asynchronous Javascript, What is Asynchronous Javascript, Synchronous Code, Asynchronous Execution, Callback functions, Promises","og_url":"https:\/\/www.cloudsurph.com\/what-is-asynchronous-javascript\/","og_site_name":"Cloudsurph Web Hosting Washington D.C.","article_publisher":"https:\/\/www.facebook.com\/CloudSurph\/","article_published_time":"2023-01-06T18:07:21+00:00","article_modified_time":"2023-01-06T18:08:30+00:00","og_image":[{"width":1264,"height":760,"url":"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2023\/01\/What-is-Asynchronous-Javascript.jpg","type":"image\/jpeg"}],"author":"Rony","twitter_card":"summary_large_image","twitter_creator":"@cloudsurph","twitter_site":"@Cloud_Surph","twitter_misc":{"Written by":"Rony","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.cloudsurph.com\/what-is-asynchronous-javascript\/#article","isPartOf":{"@id":"https:\/\/www.cloudsurph.com\/what-is-asynchronous-javascript\/"},"author":{"name":"Rony","@id":"https:\/\/www.cloudsurph.com\/#\/schema\/person\/ac9b4dd136d96e50d5f29c560191e7ed"},"headline":"Introduction to Asynchronous Javascript","datePublished":"2023-01-06T18:07:21+00:00","dateModified":"2023-01-06T18:08:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.cloudsurph.com\/what-is-asynchronous-javascript\/"},"wordCount":424,"publisher":{"@id":"https:\/\/www.cloudsurph.com\/#organization"},"image":{"@id":"https:\/\/www.cloudsurph.com\/what-is-asynchronous-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2023\/01\/What-is-Asynchronous-Javascript.jpg","keywords":["Best VPS hosting server Maryland","Cheap Cloud Servers","Cheap Storage Server Hosting","Cheapest VPS","Dedicated Server Hosting in Washington D.C","Speed test VPS"],"articleSection":["CentOS 7","Cloud Hosting","JavaScript","Linux Basics","Linux Server","Virtualization","VPS Servers"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.cloudsurph.com\/what-is-asynchronous-javascript\/","url":"https:\/\/www.cloudsurph.com\/what-is-asynchronous-javascript\/","name":"What is Asynchronous JavaScript?","isPartOf":{"@id":"https:\/\/www.cloudsurph.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.cloudsurph.com\/what-is-asynchronous-javascript\/#primaryimage"},"image":{"@id":"https:\/\/www.cloudsurph.com\/what-is-asynchronous-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2023\/01\/What-is-Asynchronous-Javascript.jpg","datePublished":"2023-01-06T18:07:21+00:00","dateModified":"2023-01-06T18:08:30+00:00","description":"Introduction Asynchronous Javascript, What is Asynchronous Javascript, Synchronous Code, Asynchronous Execution, Callback functions, Promises","breadcrumb":{"@id":"https:\/\/www.cloudsurph.com\/what-is-asynchronous-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.cloudsurph.com\/what-is-asynchronous-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.cloudsurph.com\/what-is-asynchronous-javascript\/#primaryimage","url":"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2023\/01\/What-is-Asynchronous-Javascript.jpg","contentUrl":"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2023\/01\/What-is-Asynchronous-Javascript.jpg","width":1264,"height":760,"caption":"Introduction to Asynchronous Javascript"},{"@type":"BreadcrumbList","@id":"https:\/\/www.cloudsurph.com\/what-is-asynchronous-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.cloudsurph.com\/"},{"@type":"ListItem","position":2,"name":"Introduction to Asynchronous Javascript"}]},{"@type":"WebSite","@id":"https:\/\/www.cloudsurph.com\/#website","url":"https:\/\/www.cloudsurph.com\/","name":"Cloudsurph Web Hosting Washington D.C.","description":"Dedicated Server Hosting","publisher":{"@id":"https:\/\/www.cloudsurph.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.cloudsurph.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.cloudsurph.com\/#organization","name":"CloudSurph Technology Solutions","url":"https:\/\/www.cloudsurph.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.cloudsurph.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2016\/04\/cloudsurph-logo.png","contentUrl":"https:\/\/www.cloudsurph.com\/wp-content\/uploads\/2016\/04\/cloudsurph-logo.png","width":2348,"height":1692,"caption":"CloudSurph Technology Solutions"},"image":{"@id":"https:\/\/www.cloudsurph.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/CloudSurph\/","https:\/\/x.com\/Cloud_Surph"]},{"@type":"Person","@id":"https:\/\/www.cloudsurph.com\/#\/schema\/person\/ac9b4dd136d96e50d5f29c560191e7ed","name":"Rony","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/40163fe1eb49d5eddd81954e8ad5122633e141df15b0733d07fbe4a156688ba5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/40163fe1eb49d5eddd81954e8ad5122633e141df15b0733d07fbe4a156688ba5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/40163fe1eb49d5eddd81954e8ad5122633e141df15b0733d07fbe4a156688ba5?s=96&d=mm&r=g","caption":"Rony"},"sameAs":["https:\/\/x.com\/cloudsurph"],"url":"https:\/\/www.cloudsurph.com\/author\/ron\/"}]}},"_links":{"self":[{"href":"https:\/\/www.cloudsurph.com\/wp-json\/wp\/v2\/posts\/5436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cloudsurph.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cloudsurph.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cloudsurph.com\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cloudsurph.com\/wp-json\/wp\/v2\/comments?post=5436"}],"version-history":[{"count":2,"href":"https:\/\/www.cloudsurph.com\/wp-json\/wp\/v2\/posts\/5436\/revisions"}],"predecessor-version":[{"id":5439,"href":"https:\/\/www.cloudsurph.com\/wp-json\/wp\/v2\/posts\/5436\/revisions\/5439"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cloudsurph.com\/wp-json\/wp\/v2\/media\/5437"}],"wp:attachment":[{"href":"https:\/\/www.cloudsurph.com\/wp-json\/wp\/v2\/media?parent=5436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cloudsurph.com\/wp-json\/wp\/v2\/categories?post=5436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cloudsurph.com\/wp-json\/wp\/v2\/tags?post=5436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}