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:
students
is the collection of items to be paginatedstudentsPerPage
is a constant, the 'maximum' no. of items to be displayed per page