79279972

Date: 2024-12-14 02:50:48
Score: 0.5
Natty:
Report link

If I understand what your looking for. You have the const currentPage within the loop, so it will never be anything but 1 for every page.

Add this above the loop.

let currentPage = 0;

Then have this within the loop, before the createHeader()

currentPage++;

Should work better.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Chizl