<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>javascript on Ravener</title><link>https://ravener.is-a.dev/tags/javascript/</link><description>Recent content in javascript on Ravener</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Thu, 23 Apr 2026 19:29:05 +0500</lastBuildDate><atom:link href="https://ravener.is-a.dev/tags/javascript/index.xml" rel="self" type="application/rss+xml"/><item><title>Understanding Javascript Promises</title><link>https://ravener.is-a.dev/posts/understanding-javascript-promises/</link><pubDate>Thu, 23 Apr 2026 19:29:05 +0500</pubDate><guid>https://ravener.is-a.dev/posts/understanding-javascript-promises/</guid><description>JavaScript&amp;rsquo;s promises and async/await might seem complicated at a glance and there are a lot of pitfalls beginners fall for, in this post I will try to explain everything you need to get started.
Callbacks First we have to take a step back and realize what promises are trying to replace. Callbacks.
In JavaScript some functions can be asynchronous, meaning it might take some time before it has results to give you, and while JavaScript is single-threaded, certain I/O functions can run asynchronously in the host environment (such as the browser or Node.</description></item></channel></rss>