const tryToPractice =(url)=>{ fetch(url) .then(res=>res.json()) .then(data=> console.log(data)) .catch(err=> console.error(`error from server ${err}`)); } let url = "https://jsonplaceholder.typicode.com/users"; tryToPractice(url);
const tryToPractice =(url)=>{ fetch(url) .then(res=>res.json()) .then(data=> console.log(data)) .catch(err=> console.error(`error from server ${err}`)); } let url = "https://jsonplaceholder.typicode.com/users"; tryToPractice(url);