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

Pagination and Content Project

Hi there,

I'm finding it very difficult begining this project even with the guide available. This is one of the instructions from the guide. I don't know if my code is right. I'll be very happy if i get a little help here. Thanks very much!!!

/*
function showPage(/* arguments here for page number and student list */) {
// first hide all students on the page
// Then loop through all students in our student list argument
// if student should be on this page number
// show the student
}
*/
    const $student = $('.student-list');

const showPage = (pageNum, studentList) => {
    $($student).hide();
    $($student).each((studentList) => {
        if(stu) {
       //im stuck at this stge
        }
    });
}