Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Kevin Graves Jackson
seal-mask
.a{fill-rule:evenodd;}techdegree
Kevin Graves Jackson
Full Stack JavaScript Techdegree Student 3,023 Points

First task in Data Pagination

The walkthrough says: Now access the script.js file in your text editor. Let's start by using the console.log() method to log out the data variable. This snippet of code should look like console.log(data);. Now return to your browser, refresh the page, and take a look at what logs out to the Dev Tools console. You should see an array containing 42 objects.

However, absolutely nothing happens when I add like console.log(data);. I refresh the page and literally nothing changes in the browser or console.

Is there more code needed ? Any assistance is appreciated.

1 Answer

Rohald van Merode
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Rohald van Merode
Treehouse Staff

Hey Kevin Graves Jackson 👋

It's hard to tell what is happening with your project without seeing the code in it's entirety. If absolutely nothing happens, I'd recommend to start by checking if your script is correctly linked in the HTML file.

Since you're enrolled into a Techdegree I highly recommend reaching out to the exclusive Techdegree community on Slack. Here you'll find dedicated staff as well as peers that are able to assist with any issues / questions you may come across during your coding journey 🙂