add json func
This commit is contained in:
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));
|
Reference in New Issue
Block a user