---
title: "JavaScript Promises"
url: https://daily.dev/posts/javascript-promises-xbwf6hizt
source_url: https://towardsdev.com/javascript-promises-f62fc2892247?source=rss----a648dc4ecb66---4
type: article
source: "Towards Dev"
published: 2022-04-11T12:55:54.933Z
updated: 2022-04-11T12:55:54.934Z
tags: ["javascript"]
reading_time: 4
upvotes: 40
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# JavaScript Promises

**[Towards Dev](https://daily.dev/sources/towardsdev)** · 4 min read · 40 upvotes · 0 comments

## Summary

Fetch() is the JavaScript method used to get and post data to the server. It takes one required argument, the path(url) to the resource we want to fetch. A fetch request returns a Promise, which goes from pending to eventually fulfilled, resolving in a Response object. Then the program handles the response using the .then and .catch methods.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://towardsdev.com/javascript-promises-f62fc2892247?source=rss----a648dc4ecb66---4>

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#javascript](https://daily.dev/tags/javascript)

[View this post on daily.dev](https://daily.dev/posts/javascript-promises-xbwf6hizt)
