I am a little confused about scope in javascript.
async function isNth(page, number){
let peeps = await page.evaluate(() =>
{
console.log('undefined: '+number)
}
);
}
I'm using puppeteer, but my problem lies with a lack of understanding of how javascript treats method params, as above, which are simply unavailable inside a "callback?", at least I think that's what that's called, or maybe it's "closure"-