const fetch = async () => { const response = await axios .get("https://fakestoreapi.com/products") .catch((err) => { console.log("api error", err); }); console.log(response); };