fetch('my/url/').then(respone()=>{ console.log(response); }
fetch('http://example.com/movies.json') .then((response) => { return response.json(); }) .then((myJson) => { console.log(myJson); });
fetch('http://example.com/movies.json') .then(response => response.json()) .then(data => console.log(data));
fetch('https://api.github.com/users/manishmshiva', { method: "GET", headers: {"Content-type": "application/json;charset=UTF-8"} }) .then(response => response.json()) .then(json => console.log(json)); .catch(err => console.log(err));