let hi = main("1404339566");
console.log(hi)
function main(isbn) {
return puppeteer.launch({ headless: true }).then(async browser => {
return "Text on page found";
})
}
I am trying to get this to print "Text on page found". I have tried many configurations of await in different places but can't get it working. Why does this return Promise { <pending> } and not "Text on page found"?