Generation

generate functionFri, 25 Nov 2022

get url and return content

fetch('https://jsonplaceholder.typicode.com/posts/1') .then(response => response.json()) .then(json => console.log(json))

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant