In the app.js file make a function called getProductData
The function should
Send a fetch request to the api's url
If the data is recevied the function should convert the data into .json format
The function should then send the data to the recivedProductData function
If the data isn't received then the dataError function should run
In the app.js file make a function called getProductData
The function should
Send a fetch request to the api's url If the data is recevied the function should convert the data into .json format The function should then send the data to the recivedProductData function If the data isn't received then the dataError function should run