My second Techdegree — Full Stack JavaScript project
A pagination script with two functions:
showPage(list, page)for handling the paging logicappendPageLinks(list)for dynamically adding page links with the necessary 'click' event logic- two global variables are declared:
studentsis the collection of items to be paginatedstudentsPerPageis a constant, the 'maximum' no. of items to be displayed per page