diff --git a/Retos/Reto #10 - LA API [Media]/javascript/mcosme000.js b/Retos/Reto #10 - LA API [Media]/javascript/mcosme000.js new file mode 100644 index 0000000000..7952f6866d --- /dev/null +++ b/Retos/Reto #10 - LA API [Media]/javascript/mcosme000.js @@ -0,0 +1,12 @@ +const axios = require('axios'); + +const fetchData = async (url) => { + try { + const response = await axios.get(url) + console.log(response.data); + } catch (error) { + console.log(error); + } +} + +fetchData("https://zelda.fanapis.com/api/items");