Skip to content

Commit

Permalink
Merge pull request #4792 from mcosme000/main
Browse files Browse the repository at this point in the history
Reto #10 - Javascript
  • Loading branch information
kontroldev authored Aug 29, 2023
2 parents 79e610a + 5cd4167 commit db14693
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Retos/Reto #10 - LA API [Media]/javascript/mcosme000.js
Original file line number Diff line number Diff line change
@@ -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");

0 comments on commit db14693

Please sign in to comment.