add Fetch

This commit is contained in:
Alexander Popov 2021-12-02 20:41:45 +03:00
parent d8ca7594d5
commit 91b6aca548
Signed by: iiiypuk
GPG Key ID: 398FC73478D97286
3 changed files with 4 additions and 0 deletions

View File

@ -3,6 +3,7 @@
## Basic
- [Arrays](arrays.js) - работа с массивами
- [Spread syntax](spread.js) - распаковка массива в аргументы
- [fetch](fetch.js) - ...
## Other
- [Webpack](webpack.md) example config

3
JavaScript/fetch.js Normal file
View File

@ -0,0 +1,3 @@
fetch('http://example.com/movies.json')
.then(response => response.json())
.then(data => console.log(data));