snipplets.dev/~/JavaScript/fetch.js
2022-04-03 09:04:24 +03:00

4 lines
113 B
JavaScript

fetch('http://example.com/movies.json')
.then(response => response.json())
.then(data => console.log(data));