Skip to content

Commit

Permalink
Documatation > Ajax and Restful Api > Fetch Api + Promise > add
Browse files Browse the repository at this point in the history
  • Loading branch information
DrMadWill committed Jan 3, 2022
1 parent 3c6d5bd commit f256b20
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Empty file.
10 changes: 9 additions & 1 deletion Documantation/16_Asynchronous/documantation.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,12 @@
**Status :**
- 200 => OK
- 403 => Forbidden
- 404 => Not Found
- 404 => Not Found

## Promise
> `Callback` funksiyalarin asanlaşdırlımış versiyasıdır. Asinxron olaraq göndərilən məlumati sıralamaq ehtiyacı yaranır. Bu ehtiyacin ödənməsi üçün öncələr `callback` funksiyalarindan istifadə edirdilər sonra `Promise` istifadə etdilər. Parametr göndərərək hadisələri sıralaya bilirik.
## Fetch Api
> Bizi bir XHR obyekti yaratmaqdan bizi xilas edən və sonda bizə `Promise` obyekti döndürən obyektdir. `fetch()` methodunun daxilinə gödərilən location və data vastəsi ilə ya post ya da get edib nəticələrini `.then()` də yaxalaya bilərik.

0 comments on commit f256b20

Please sign in to comment.