add Fetch
This commit is contained in:
parent
d8ca7594d5
commit
91b6aca548
@ -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
3
JavaScript/fetch.js
Normal file
@ -0,0 +1,3 @@
|
||||
fetch('http://example.com/movies.json')
|
||||
.then(response => response.json())
|
||||
.then(data => console.log(data));
|
Loading…
Reference in New Issue
Block a user