// For JavaScript running in the NodeJS environment:
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch( { headless: false } )
const page = await browser.newPage()
await page.goto("https://bbc.com")
const data = await page.evaluate(() => {
// Enter JavaScript to run on the page here!
})
})()