snipplets.dev/code/JavaScript/fetch.js

4 lines
113 B
JavaScript
Raw Normal View History

2021-12-02 20:41:45 +03:00
fetch('http://example.com/movies.json')
.then(response => response.json())
.then(data => console.log(data));