snipplets.dev/snipplets/code/JavaScript/fetch.js
2023-08-05 22:45:06 +03:00

4 lines
113 B
JavaScript

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