I am trying to build an application where I want to display data from the javascript array. There will be a lot of data and I want to show pagination and 10 items per page. Suppose the user wants to see the 3rd page, then I need to get the 20th to 29th item from the array.
let listItems = [item1, item2, item3, item4, ...., item100];