I've seen other questions with the same title but that doesn't help. I was trying to log a value returned from `page.evaluate` function but it's logging neither in the browser nor in the terminal.. here's my code

```
const pptr = require("puppeteer");

(async () => {
  const { config, baseURL } = require("./config");

    await pptr.launch(config).then(async browser => {
    const page = await browser.newPage();
    await page.goto(baseURL, { waitUntil: "load" });

    await page.setDefaultTimeout(0);
    await page.setDefaultNavigationTimeout(0);

    await page.click("#pgntn > div.Pagination > ul > li:nth-child(8) > a");
    await page.waitForNavigation({ waitUntil: "load" });

    let pageNumber = await page.evaluate(() => {
      return document.querySelector("a.current").textContent;
    });

    console.log(pageNumber);
  });
})();

```