Learn Fetch and Promises by Building an fCC Authors Page - Step 3

Tell us what’s happening:

compiler show this error again and again .kindly guide me

Your code so far

/* file: script.js */
const authorContainer = document.getElementById('author-container');
const loadMoreBtn = document.getElementById('load-more-btn');


// User Editable Region

fetch("https://cdn.freecodecamp.org/curriculum/news-author-page/authors.json")
    .then((res) => {
    console.log(res);
    });


// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36

Challenge Information:

Learn Fetch and Promises by Building an fCC Authors Page - Step 3

anybody is here, sir

i already responded to this question in your earlier topic, hopefully that resolved it… :slight_smile:

also its recommended to not to create “duplicate posts!!”

happy coding :slight_smile:

It did not work out for me!

I used your code solution!
console: " You should log the

res

parameter to the console so you can see the

Response

object."

if you have a question then feel free to create a new topic, happy coding :slight_smile:

honestly, I don’t know why it’s not working for me too.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.