We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2a925a9 + 3562c55 commit fc74abfCopy full SHA for fc74abf
part9 (Advanced Topics)/16_methods_to_fetch_api.js
@@ -30,7 +30,7 @@ getPosts();
30
// 2. Fetch with async/await
31
async function getData() {
32
try {
33
- const response = await fetch9("https://jsonplaceholder.typicode.com/posts");
+ const response = await fetch("https://jsonplaceholder.typicode.com/posts");
34
const data = await response.json();
35
console.log("Data inside async/await:", data);
36
return data; // this is how we return it to use outside
0 commit comments