Chrstjan / BaliAbba-Webstore

BaliAbba Webstore Opgave
MIT License
0 stars 0 forks source link

Create getProductData Function #7

Open Chrstjan opened 8 months ago

Chrstjan commented 8 months ago

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